2021-10-19 05:02:15 -07:00
|
|
|
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
|
|
|
|
2021-10-19 05:02:15 -07: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")
|
2021-10-19 05:02:15 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-01-17 13:26:56 -08:00
|
|
|
|
|
|
|
tasks.withType<JavaCompile>().configureEach {
|
|
|
|
options.release.set(project.property("KOTLIN_JVM_TARGET").toString().toInt())
|
|
|
|
}
|