Slackbot
03/10/2022, 9:56 AMno
03/10/2022, 10:56 AMVojtech Hrdina
03/10/2022, 11:14 AMlintClassPath
in module build.gradle
but not anymore in root build.gradle
in
subprojects {
dependencies {}
}
Vojtech Hrdina
03/11/2022, 9:47 AMbuild.gradle
or from external .gradle
files. Now(AGP 7.1) it is not possible. What is alternative?no
03/11/2022, 10:10 AMsubprojects
and instead use conventions plugins. Here is an example: https://docs.gradle.org/current/samples/sample_sharing_convention_plugins_with_build_logic.htmlVojtech Hrdina
03/11/2022, 11:19 AMsubprojects {
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = '11'
}
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = '11'
}
}
}
Same for shared dependencies (VersionCatalog
is good alternative)
Test configuration, etc…no
03/11/2022, 12:31 PM