Slackbot
10/26/2022, 2:16 PMChris Lee
10/26/2022, 2:18 PMVampire
10/26/2022, 2:18 PMapply falseDaniele Segato
10/26/2022, 2:19 PMVampire
10/26/2022, 2:19 PMAs noted in the warning, remove that plugin from subprojects.But that's not what the warning says, is it? It only says to remove the version and that should just be ok in recent Gradle version if there the version is noted too.
Vampire
10/26/2022, 2:20 PMI need that plugin in the child projectTry it like the warning really suggests and what I said, which does not imply removing it. 😉
Daniele Segato
10/26/2022, 2:20 PMbuild.gradle.kts file have all the plugins with apply false and that's it?Vampire
10/26/2022, 2:21 PMVampire
10/26/2022, 2:21 PMDaniele Segato
10/26/2022, 2:22 PMDaniele Segato
10/26/2022, 2:25 PM'val Project.libs: LibrariesForLibs' can't be called in this context by implicit receiver. Use the explicit one if necessary
I've been told it's an IDE issue (and I've a suppress on all my plugins {} about it
https://youtrack.jetbrains.com/issue/KTIJ-19370
https://youtrack.jetbrains.com/issue/KTIJ-19369Vampire
10/26/2022, 2:30 PMDaniele Segato
10/26/2022, 2:31 PMVampire
10/26/2022, 2:31 PM@SuppressWarnings for them, or install the IntelliJ plugin that suppresses the false warning.Daniele Segato
10/26/2022, 2:45 PMapply false in the root build file
plugins {
id("com.github.ben-manes.versions") version "0.42.0"
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.android) apply false
}
got me this error
Error resolving plugin [id: 'org.jetbrains.kotlin.kapt', version: '1.7.10']
> The request for this plugin could not be satisfied because the plugin is already on the classpath with an unknown version, so compatibility cannot be checked.
in one of the project that already had itDaniele Segato
10/26/2022, 2:58 PM@Suppress("DSL_SCOPE_VIOLATION")
plugins {
like in all the other modules I get an error:
* What went wrong:
Script compilation error:
Line 1: @Suppress("DSL_SCOPE_VIOLATION")
^ Expecting an expression
1 error
the other build files are ok with me using the SuppressDaniele Segato
10/26/2022, 3:01 PMDaniele Segato
10/26/2022, 3:10 PMplugins {
// For some reason putting this suppress above plugins in this file specifically
// makes gradle really angry
@Suppress("DSL_SCOPE_VIOLATION")
run {
thanks for the help