build: specify jdk 17 for all android compilation tasks

This commit is contained in:
thunderbiscuit 2024-04-09 16:14:29 -04:00
parent 7b9e71714f
commit 78ef936369
No known key found for this signature in database
GPG Key ID: 88253696EB836462

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")