From cc5ea6a4568346061452cff2bbf26242ed315f72 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 1 Jul 2023 03:50:24 +0530 Subject: fix(build): remove useless Java configuration for Gradle Toolchains --- build-logic/build.gradle.kts | 1 - .../src/main/kotlin/app/passwordstore/gradle/KotlinAndroidPlugin.kt | 2 -- 2 files changed, 3 deletions(-) (limited to 'build-logic') diff --git a/build-logic/build.gradle.kts b/build-logic/build.gradle.kts index 362672da..20d2ff4a 100644 --- a/build-logic/build.gradle.kts +++ b/build-logic/build.gradle.kts @@ -7,7 +7,6 @@ plugins { `kotlin-dsl` } private val jvmToolchainAction = Action { languageVersion.set(JavaLanguageVersion.of(17)) } -java.toolchain(jvmToolchainAction) kotlin.jvmToolchain(jvmToolchainAction) gradlePlugin { diff --git a/build-logic/src/main/kotlin/app/passwordstore/gradle/KotlinAndroidPlugin.kt b/build-logic/src/main/kotlin/app/passwordstore/gradle/KotlinAndroidPlugin.kt index 553e8acd..46a5eb30 100644 --- a/build-logic/src/main/kotlin/app/passwordstore/gradle/KotlinAndroidPlugin.kt +++ b/build-logic/src/main/kotlin/app/passwordstore/gradle/KotlinAndroidPlugin.kt @@ -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 { apply(KotlinAndroidPluginWrapper::class) apply(KotlinCommonPlugin::class) } - project.extensions.getByType().toolchain(JVM_TOOLCHAIN_ACTION) project.extensions.getByType().jvmToolchain(JVM_TOOLCHAIN_ACTION) } } -- cgit v1.2.3