-
Notifications
You must be signed in to change notification settings - Fork 67
Update to Gradle 8 #122
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
Update to Gradle 8 #122
Conversation
- bump Gradle Plugin Publish Plugin version - build script updates & improvements - use Java Toolchains to set Java version - use jvm-test-fixtures plugin for functionalTest sources
build.gradle.kts
Outdated
| doLast { | ||
| outputDir.mkdirs() | ||
| file(outputDir.resolve("plugin-classpath.txt")).writeText(testPluginRuntimeConfiguration.get().joinToString("\n")) | ||
| file(outputDir.resolve("plugin-classpath.txt")).writeText(testPluginRuntimeConfiguration.joinToString("\n")) |
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.
This one seems to be the really nasty hack from the earlier Gradle era where there were no proper test kits. Could you please check if it's still needed?
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.
I'm happy to do so, but I thought it would be a bit of a larger change than just bumping the Gradle version. It would require updating the test code to remove the addPluginTestRuntimeClasspath() helper function.
Additionally, it seems like this hack is hardcoding the Kotlin version to be 1.8.10, even though the test data specify Kotlin 1.3
Line 7 in 5d08f51
| kotlin("jvm") version "1.3.70" |
So when I remove the hack, the Config Cache checks fail. Not because BCV is incompatible with CC, but because Kotlin 1.3 is incompatible.
I can update all of the test data to use Kotlin 1.8.10?
(btw, the replacement for this hack is this line: gradlePlugin.testSourceSets(functionalTest.sources)withPluginClasspath())
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.
It would be totally okay, thanks!
I'd say it's even more preferable to have testdata being built with fresh Kotlin
|
Thanks!
It is not, as I fail to execute The corresponding error: |
|
|
||
| kotlinVersion=1.8.10 | ||
| pluginPublishVersion=0.10.1 | ||
| pluginPublishVersion=1.1.0 |
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.
Note to self: Bumping this version was required to be compatible with Gradle 8, but it probably caused the signing requirement.
|
I confirmed that local publication works and that publishing works without breaking Sonatype invariants (e.g. it's releasable as is). Consumption of locally published (to mavenLocal) works as well, thanks! It's already good to go, it's up to you whether you want to get rid of |
Great! Thanks for checking. I think this can be merged. I tried replacing The solution would be to instead publish BCV to a local Maven directory (not necessarily Maven Local). I can do that in a separate PR. So yes, go ahead and merge please! |
qwwdfsad
left a comment
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.
👍
- bump Gradle Plugin Publish Plugin version - build script updates & improvements - use Java Toolchains to set the Java version - use jvm-test-fixtures plugin for functionalTest sources - update build config, remove redundant Maven publication
- bump Gradle Plugin Publish Plugin version - build script updates & improvements - use Java Toolchains to set the Java version - use jvm-test-fixtures plugin for functionalTest sources - update build config, remove redundant Maven publication
* Annotate file paths with `@Language("file-reference")` (#126)
* Update to Gradle 8 (#122)
* bump Gradle Plugin Publish Plugin version
* build script updates & improvements
* use Java Toolchains to set the Java version
* use jvm-test-fixtures plugin for functionalTest sources
* update build config, remove redundant Maven publication
* Initial Gradle convention plugins (#123)
* Apply BCV, commit API dump (#131)
* The ABI shape will be reduced in the future, this is a technical change
* java-diff-utils
* Update Gradle to 8.5
---------
Co-authored-by: aSemy <897017+aSemy@users.noreply.github.com>
This PR contains no functional changes to the library or plugin.
Things to test