-
Notifications
You must be signed in to change notification settings - Fork 17
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
Refactor/1004 simplify libs versions #1026
Conversation
Concerning the removal of lines from [plugins] section we could do it in two ways:
|
f53571d
to
41162a5
Compare
Okay... do we have any such case now? any plugin that can be removed from
Hmmm what would be downsides of such approach? will we still have e.g. the same IDE support? also, isn't legacy plugin application scheduled for removal soon-ish? |
Also, pls take care to provide proper PR name + milestone + labels + issue binding once you open a non-draft PR |
5c80697
to
d27304b
Compare
d27304b
to
cc769d4
Compare
The plugins that are now only used as dependencies are:
That leaves us with only jetbrains-kotlin used both as a dependecy and being applied as a plugin. |
c9cf728
to
f8273c8
Compare
# @pin because as per https://plugins.jetbrains.com/docs/intellij/kotlin.html#kotlin-standard-library: | ||
# "If a plugin supports multiple platform versions, it must (...) target the lowest bundled stdlib version" | ||
# which is 1.4.0 in our case (as this is the Kotlin version bundled into IntelliJ 2020.3). | ||
pluginPackages-jetbrains-kotlin = "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.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.
Huh AFAICS no warning on different Kotlin versions from buildSrc:compileKotlin
... but also no reference to Gradle 7.4.2-compatible Kotlin 1.5. What's the trick then? 🤔
pluginPackages-spotless = { module = "com.diffplug.spotless:spotless-plugin-gradle", version.ref = "plugins-spotless" } | ||
# @pin because 6.5.x is incompatible with kotlin plugin 1.4.x, | ||
# see https://github.com/freefair/gradle-plugins/issues/554#issuecomment-1171434185 for more details | ||
pluginPackages-aspectj-postCompileWeaving = "io.freefair.gradle:aspectj-plugin:6.4.3.1" |
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.
Try if it's possible to introduce some TOML subsection like [pluginPackages]
or [libraries.pluginPackages]
instead of prefixing each entry with pluginPackages-
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 think it's not, haven't seen that in any docs, and the compiler throws this when trying to introduce [pluginPackages]:
Problem: In version catalog libs, unknown top level elements [pluginPackages]
Co-authored-by: Paweł Lipski <[email protected]>
No description provided.