-
Notifications
You must be signed in to change notification settings - Fork 510
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
Gradle tweaks #4222
Gradle tweaks #4222
Conversation
The @classpath annotation on classpath property will invalidate tasks when the files on the classpath change.
6ffadf1
to
e14cb88
Compare
e14cb88
to
8fededc
Compare
8fededc
to
8821713
Compare
...ight-gradle-plugin/src/main/kotlin/app/cash/sqldelight/gradle/GenerateMigrationOutputTask.kt
Show resolved
Hide resolved
project.plugins.withId("org.jetbrains.kotlin.js", kotlinPluginHandler) | ||
project.plugins.withId("kotlin2js", kotlinPluginHandler) | ||
|
||
project.plugins.withType(KotlinBasePlugin::class.java) { |
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 should note that KotlinBasePlugin
was only added in Kotlin 1.7.0, so if compatibility with older versions is needed, this should be reverted.
https://kotlinlang.org/docs/whatsnew17.html#updates-in-the-kotlin-gradle-plugin-api
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.
While I am fine with requiring Kotlin 1.7.0, could you split this change from the PR to merge the other Gradle plugin changes and we can discuss the Kotlin requirement in separate PR?
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 its fine, I can't imagine folks upgrading SQLDelight to not also be upgrading kotlin
Need to revert, this broke @shellderp 's build:
|
This reverts commit 9012c42.
(feel free to reopen the changes with a fix, the android plugin is optional on the classpath which is the issue) |
Biggest question: Why did the tests success? Don't we have tests without AGP? |
i thought so too, I'm not sure i wonder if tests specifically are getting it transitively pulled in because of all the magic we do for shading |
I took a look and I think, it is caused by this line:
I am already trying to fix the setup and getting failing tests. |
Some Gradle plugin tweaks that can hopefully make it into 2.0 RC2.