Skip to content

Cleanup Gradle build#997

Merged
bulldozer-bot[bot] merged 3 commits into
palantir:developfrom
shanman190:develop
Feb 2, 2024
Merged

Cleanup Gradle build#997
bulldozer-bot[bot] merged 3 commits into
palantir:developfrom
shanman190:develop

Conversation

@shanman190

@shanman190 shanman190 commented Feb 1, 2024

Copy link
Copy Markdown
Contributor

Before this PR

The build was using some old patterns that aren't supported anymore preventing Gradle 8.x adoption.

After this PR

Possible downsides?

None.

@palantirtech

Copy link
Copy Markdown
Member

Thanks for your interest in palantir/palantir-java-format, @shanman190! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

pluginClasspath sourceSets.main.output
compileOnly configurations.implicitDependencies
implicitDependencies 'com.diffplug.spotless:spotless-plugin-gradle'
pluginClasspath 'com.diffplug.spotless:spotless-plugin-gradle'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you'd like to only see com.diffplug.spotless:spotless-plugin-gradle only defined once, a quick way to achieve this is by modifying the pluginClasspath configuration above to have an extendsFrom compileOnly.

@fawind fawind left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks a bunch for the clean up!

@koppor

koppor commented Apr 8, 2024

Copy link
Copy Markdown
Contributor

@shanman190 Thank you again for the work.

I see that there is an early version of the 2.0 version of the plugin (https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html). Can this be used in this project somehow?

@shanman190

Copy link
Copy Markdown
Contributor Author

@koppor, it might. If this project is ok with the early access version, then I don't see any harm in trying it out though to prove that it does work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants