nuhkoca
05/24/2021, 3:06 PMclasspaths
) from root build.gradle.kts
into buildSrc/build.gradle.kts
but I am now getting weird warnings for some declarations as seen in the attachment. How can I get rid of this?Javier
05/24/2021, 3:11 PMnuhkoca
05/24/2021, 3:15 PMbuildSrc/build.gradle.kts
I have below block
plugins {
`java-gradle-plugin`
`kotlin-dsl`
}
kotlinDslPluginOptions {
experimentalWarning.set(false)
}
repositories {
mavenCentral()
google()
}
private object PluginVersions {
const val kotlin = "1.4.31"
const val buildTools = "4.1.3"
}
dependencies {
implementation(kotlin("gradle-plugin", version = PluginVersions.kotlin))
implementation(kotlin("stdlib-jdk7", version = PluginVersions.kotlin))
implementation("com.android.tools.build:gradle:${PluginVersions.buildTools}")
}
and I have almost nothing in root build.gradle.kts
sorry it is a private repo I cannot expose all details but that would be enough I hope.Javier
05/24/2021, 3:17 PMjava-gradle-plugin
, and stdlib dep, I have the same and it works for meJavier
05/24/2021, 3:17 PMJavier
05/24/2021, 3:18 PMnuhkoca
05/24/2021, 3:19 PMJavier
05/24/2021, 3:19 PMnuhkoca
05/24/2021, 3:22 PMJavier
05/24/2021, 3:24 PMnuhkoca
05/24/2021, 3:27 PMJDK
conflicting warning on IDE, how can I fix JDK
issues? I installed Choose Runtime
plugin but seems it didn’t work, either. I chose the Embedded JDKJavier
05/24/2021, 3:37 PMJavier
05/24/2021, 3:37 PMnuhkoca
05/24/2021, 4:31 PM