build: specify jdk 17 for all android compilation tasks

This commit is contained in:
thunderbiscuit committed 2024-04-09 16:14:29 -04:00
1 parent 7b9e71714f
commit 78ef936369
1 file changed
+14
+14
View File
@@ -38,6 +38,20 @@ android {
}
}
kotlin {
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "17"
}
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
dependencies {
implementation("net.java.dev.jna:jna:5.14.0@aar")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7")