fix(build): remove useless Java configuration for Gradle Toolchains
This commit is contained in:
parent
03aaeab737
commit
cc5ea6a456
2 changed files with 0 additions and 3 deletions
|
@ -7,7 +7,6 @@ plugins { `kotlin-dsl` }
|
|||
|
||||
private val jvmToolchainAction = Action<JavaToolchainSpec> { languageVersion.set(JavaLanguageVersion.of(17)) }
|
||||
|
||||
java.toolchain(jvmToolchainAction)
|
||||
kotlin.jvmToolchain(jvmToolchainAction)
|
||||
|
||||
gradlePlugin {
|
||||
|
|
|
@ -8,7 +8,6 @@ package app.passwordstore.gradle
|
|||
import app.passwordstore.gradle.KotlinCommonPlugin.Companion.JVM_TOOLCHAIN_ACTION
|
||||
import org.gradle.api.Plugin
|
||||
import org.gradle.api.Project
|
||||
import org.gradle.api.plugins.JavaPluginExtension
|
||||
import org.gradle.kotlin.dsl.apply
|
||||
import org.gradle.kotlin.dsl.getByType
|
||||
import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension
|
||||
|
@ -22,7 +21,6 @@ class KotlinAndroidPlugin : Plugin<Project> {
|
|||
apply(KotlinAndroidPluginWrapper::class)
|
||||
apply(KotlinCommonPlugin::class)
|
||||
}
|
||||
project.extensions.getByType<JavaPluginExtension>().toolchain(JVM_TOOLCHAIN_ACTION)
|
||||
project.extensions.getByType<KotlinProjectExtension>().jvmToolchain(JVM_TOOLCHAIN_ACTION)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue