nuhkoca
06/28/2022, 8:59 PMbuild-logic
instead of buildSrc
and moved some code in there. However, I am getting an exception when I try to use something from build-logic
fun VariantDimension.stringField(name: String, value: String) {
buildConfigField("String", name, "\"$value\"")
}
ScriptCompilationException(errors=[ScriptCompilationError(message=Unresolved reference: stringField, location=/Users/nuhkoca/.gradle/.tmp/gradle-kotlin-dsl-16705359721542638789.tmp/build.gradle.kts (27:9))
MR3Y
06/28/2022, 9:51 PMstringField
in your gradle scripts from build-logic
because build-logic
isn't on gradle hot classpath by default unlike buildSrc
. For more information, see: https://kotlinlang.slack.com/archives/C19FD9681/p1655824505656089nuhkoca
06/29/2022, 10:22 AMGradle
scripts, right?MR3Y
06/29/2022, 10:25 AM