fix(build): remove JVM vendor preference
This commit is contained in:
parent
0ba9744f62
commit
03aaeab737
2 changed files with 2 additions and 9 deletions
|
@ -5,10 +5,7 @@
|
||||||
|
|
||||||
plugins { `kotlin-dsl` }
|
plugins { `kotlin-dsl` }
|
||||||
|
|
||||||
private val jvmToolchainAction = Action<JavaToolchainSpec> {
|
private val jvmToolchainAction = Action<JavaToolchainSpec> { languageVersion.set(JavaLanguageVersion.of(17)) }
|
||||||
languageVersion.set(JavaLanguageVersion.of(17))
|
|
||||||
vendor.set(JvmVendorSpec.ADOPTIUM)
|
|
||||||
}
|
|
||||||
|
|
||||||
java.toolchain(jvmToolchainAction)
|
java.toolchain(jvmToolchainAction)
|
||||||
kotlin.jvmToolchain(jvmToolchainAction)
|
kotlin.jvmToolchain(jvmToolchainAction)
|
||||||
|
|
|
@ -12,7 +12,6 @@ import org.gradle.api.tasks.testing.Test
|
||||||
import org.gradle.api.tasks.testing.logging.TestLogEvent
|
import org.gradle.api.tasks.testing.logging.TestLogEvent
|
||||||
import org.gradle.jvm.toolchain.JavaLanguageVersion
|
import org.gradle.jvm.toolchain.JavaLanguageVersion
|
||||||
import org.gradle.jvm.toolchain.JavaToolchainSpec
|
import org.gradle.jvm.toolchain.JavaToolchainSpec
|
||||||
import org.gradle.jvm.toolchain.JvmVendorSpec
|
|
||||||
import org.gradle.kotlin.dsl.withType
|
import org.gradle.kotlin.dsl.withType
|
||||||
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
|
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
|
||||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
@ -48,9 +47,6 @@ class KotlinCommonPlugin : Plugin<Project> {
|
||||||
)
|
)
|
||||||
|
|
||||||
val JVM_TOOLCHAIN_ACTION =
|
val JVM_TOOLCHAIN_ACTION =
|
||||||
Action<JavaToolchainSpec> {
|
Action<JavaToolchainSpec> { languageVersion.set(JavaLanguageVersion.of(17)) }
|
||||||
languageVersion.set(JavaLanguageVersion.of(17))
|
|
||||||
vendor.set(JvmVendorSpec.ADOPTIUM)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue