This message was deleted.
# community-support
s
This message was deleted.
c
Why is it a different version for that artifact? S/b 1.8.22.
g
No idea tbh
c
Are you perhaps mixing the embedded Kotlin version with the Kotlin plugin, ie using Kotlin-dsl plugin and Kotlin/jvm plugin? Don’t do that, they are for separate purposes and don’t work well together.
g
I’m not doing that. The warning just appeared with the updates.
c
Are you sure? The warning is for the embedded Kotlin compiler which is from Kotlin-dsl typically. Perhaps include snippets from build script for context.
g
We use kotlin-dsl for our convention plugins, but we didnt get this warning in previous versions.
c
if
kotlin-dsl
is mixed with
kotlin
plugin it creates unpredictable behaviour, such as failures on upgrades. What does the plugin block look like for your convention plugin build script?
g
I just realized we dont even use kotlin-dsl.
plugins {
java-gradle-plugin
id("org.jetbrains.kotlin.jvm") version "1.8.22"
}
c
ok. the idiomatic approach is to use
kotlin-dsl
which includes java-gradle-plugin, the Gradle-embedded Kotlin compiler, and sets up everything for Gradle development.
in your example everything could be replaced with
kotlin-dsl
.
there’s likely a bunch of undesireable dependencies in there as well as a result.
g
So I switched to kotlin-dsl, would the warning be gone?
c
In part. You’ll likely need to cleanup various dependencies that were added to make that original configuration work.
Typically kotlin dependencies such as stdlib, reflect and gradleKotlinDsl() are not required. Any other Kotlin dependency that has a Kotlin version is suspect; at a minimum it should use “embeddedKotlinVersion” to match Gradle and perhaps should be removed.
g
I think this warning might be related to Epoxy. It is only present in the modules that use Epoxy. https://github.com/airbnb/epoxy/issues/1340 https://github.com/airbnb/epoxy/issues/1325
Task market dynamic list apicompileDebugJavaWithJavac
The following annotation processors are not incremental: kotlin-compiler-embeddable-1.8.21.jar (org.jetbrains.kotlinkotlin compiler embeddable1.8.21). Make sure all annotation processors are incremental to improve your build speed.
We’re using the latest version of Epoxy.
c
interesting.