-
Notifications
You must be signed in to change notification settings - Fork 247
Gradle / Kotlin + move common parts to project-plugin #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1fd5db7
to
2cddd3f
Compare
Migrate Gradle/Groovy to Gradle/Kotlin-script. Gradle/Kotlin is a bit slower to compile, but has proper type-safety and really good support in at least IntelliJ, and actually makes debugging build scripts possible. Gradle/Groovy is not really type safe and often yields quite surprising behavior. Also moves the common project configuration to the project plugin `polaris-server` and the "boring" parts of `/build.gradle.kts` to the project plugin `polaris-root`.
implementation(project(":polaris-core")) | ||
implementation(project(":polaris-eclipselink")) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@snazy , was it intentional that the polaris-eclipselink
dependency wasn't included in the kotlin build? Or was that an oversight? I didn't see a mention of this in the PR description.
For changes to the build, I think a good practice would be to compare the contents of the bundled jars before and after to understand if there's a change in the build output
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, my bad. That wasn't intentional.
Migrate Gradle/Groovy to Gradle/Kotlin-script.
Gradle/Kotlin is a bit slower to compile, but has proper type-safety and really good support in at least IntelliJ, and actually makes debugging build scripts possible. Gradle/Groovy is not really type safe and often yields quite surprising behavior.
Also moves the common project configuration to the project plugin
polaris-server
and the "boring" parts of/build.gradle.kts
to the project pluginpolaris-root
.