fix(build): remove useless Java configuration for Gradle Toolchains

This commit is contained in:
Harsh Shandilya 2023-07-01 03:50:24 +05:30
parent 03aaeab737
commit cc5ea6a456
No known key found for this signature in database
2 changed files with 0 additions and 3 deletions

View file

@ -7,7 +7,6 @@ plugins { `kotlin-dsl` }
private val jvmToolchainAction = Action<JavaToolchainSpec> { languageVersion.set(JavaLanguageVersion.of(17)) }
java.toolchain(jvmToolchainAction)
kotlin.jvmToolchain(jvmToolchainAction)
gradlePlugin {

View file

@ -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)
}
}