Skip to content

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

Merged
merged 3 commits into from
Aug 7, 2024

Conversation

snazy
Copy link
Member

@snazy snazy commented Aug 1, 2024

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.

@snazy snazy changed the title WIP Gradle / Kotlin WIP Gradle / Kotlin + common parts to project-plugin Aug 5, 2024
@snazy snazy force-pushed the gradle-kts branch 2 times, most recently from 1fd5db7 to 2cddd3f Compare August 6, 2024 09:51
@snazy snazy changed the title WIP Gradle / Kotlin + common parts to project-plugin Gradle / Kotlin + common parts to project-plugin Aug 6, 2024
@snazy snazy marked this pull request as ready for review August 6, 2024 09:51
@snazy snazy requested a review from a team as a code owner August 6, 2024 09:51
@snazy snazy changed the title Gradle / Kotlin + common parts to project-plugin Gradle / Kotlin + move common parts to project-plugin Aug 6, 2024
adutra
adutra previously approved these changes Aug 6, 2024
snazy added 3 commits August 7, 2024 14:52
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`.
@snazy snazy merged commit e81a2c4 into apache:main Aug 7, 2024
3 checks passed
@snazy snazy deleted the gradle-kts branch August 7, 2024 13:13
Comment on lines -26 to -28
implementation(project(":polaris-core"))
implementation(project(":polaris-eclipselink"))

Copy link
Contributor

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

Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants