Skip to content

Commit

Permalink
build: Apply toolchain resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
YuKongA committed Jun 3, 2024
1 parent b2b844a commit cb69d9a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
10 changes: 5 additions & 5 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import com.android.build.gradle.internal.api.BaseVariantOutputImpl
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import java.io.ByteArrayOutputStream
import java.util.Properties

Expand Down Expand Up @@ -65,13 +64,14 @@ android {
applicationIdSuffix = ".debug"
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
kotlin {
jvmToolchain(21)
compilerOptions {
jvmTarget = JvmTarget.JVM_17
freeCompilerArgs = listOf(
"-Xno-param-assertions",
"-Xno-call-assertions",
Expand Down
5 changes: 1 addition & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,4 @@ android.nonTransitiveRClass=true

# Gradle
org.gradle.parallel=true
org.gradle.caching=true

# Experimental
android.experimental.enableNewResourceShrinker.preciseShrinking=true
org.gradle.caching=true
4 changes: 4 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ dependencyResolutionManagement {
}
}

plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version("0.4.0")
}

rootProject.name = "HQ ICON"
include(":app")

0 comments on commit cb69d9a

Please sign in to comment.