-
Notifications
You must be signed in to change notification settings - Fork 29
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
Drop kotlin-dsl plugin #295
Conversation
Kotlin 1.8.22 has been selected as it's the last version to support Kotlin API version 1.3 which this plugin uses to support Gradle versions as old as Gradle 6.2.
src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt
Show resolved
Hide resolved
src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt
Show resolved
Hide resolved
Co-authored-by: Róbert Papp <[email protected]>
What the
So shouldn't it be sufficient to just apply the built-in version of |
@Vampire thank you for chiming in!
The problem is that when using Gradle 8.3 to compile the nexus plugin the embedded Kotlin compiler (via kotlin-dsl) does not support the 1.3 language version required for the minimum Gradle version supported by nexus plugin. That's a long sentence, here's a ref: gradle/gradle#25868
We're here. We're stuck on 8.2.1. This PR tries to unblock the sticky situation, without warnings.
In #258 I think I did this, but maybe it could be done better. |
@szpak I'm more and more in favour of just getting this in, to move things along. It's easy to reinstate anything here, after we're on 8.6, or maybe we won't even miss them :) This might even be a non-issue if we drop more Gradle versions post 2.0. |
What version would you like to set as a minimum for 2.0? |
Post 2.0 = 2.1+ or 3.0. I think we dropped enough with #274. Let's try to make a release, it's been too long. I have a feeling projects are forced to use 2.0.0-rc-1 if they want full Gradle 8.+ compatibility. Note: the open PRs shouldn't change any compatibility afair, so it's not necessary to include them in the release. |
Fair point.
|
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.
@TWiStErRob Feel free to merge it once you think it is ready.
|
Using the
kotlin-dsl
plugin creates additional implicit dependencies on the Kotlin version used by Gradle as seen in #258 (comment).Removing the use of kotlin-dsl in the plugin itself removes that dependency. Now the Kotlin version required by the project can be set independently and is not tied to the Kotlin version used by the Gradle version applied to the wrapper.