secant-android-wallet/build-conventions-secant/src/main/kotlin/secant.kotlin-multiplatform...

20 lines
733 B
Plaintext
Raw Normal View History

pluginManager.withPlugin("org.jetbrains.kotlin.multiplatform") {
extensions.findByType<org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension>()?.apply {
2023-01-17 13:26:56 -08:00
jvmToolchain(project.property("JVM_TOOLCHAIN").toString().toInt())
2021-11-10 08:38:20 -08:00
targets.all {
compilations.all {
2023-01-17 13:26:56 -08:00
compilerOptions.options.allWarningsAsErrors.set(
project.property("ZCASH_IS_TREAT_WARNINGS_AS_ERRORS").toString().toBoolean()
)
compilerOptions.options.freeCompilerArgs.addAll("-opt-in=kotlin.RequiresOptIn")
}
}
}
}
2023-01-17 13:26:56 -08:00
tasks.withType<JavaCompile>().configureEach {
options.release.set(project.property("KOTLIN_JVM_TARGET").toString().toInt())
}