mirror of
https://github.com/jellyfin/jellyfin-androidtv.git
synced 2024-10-07 03:03:22 +00:00
Use JDK toolchains to explicitly use JDK 17
Explicitly mark that we want version 17 of the JDK as the compiler. Previously we implicitly relied on Gradle getting this right. This means devs and CI will all use the same JDK explicitly rather than implicitly. Pin the target JDK version in build.gradle.kts, this should apply to all targets (including Kotlin) to version 1.8 to maintain compatibility with older devices
This commit is contained in:
parent
45e7e6456c
commit
4bb2158cc0
@ -1,5 +1,6 @@
|
|||||||
plugins {
|
plugins {
|
||||||
alias(libs.plugins.detekt)
|
alias(libs.plugins.detekt)
|
||||||
|
java
|
||||||
}
|
}
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
@ -9,6 +10,12 @@ buildscript {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
toolchain {
|
||||||
|
languageVersion.set(JavaLanguageVersion.of("17"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
// Configure linting
|
// Configure linting
|
||||||
apply<io.gitlab.arturbosch.detekt.DetektPlugin>()
|
apply<io.gitlab.arturbosch.detekt.DetektPlugin>()
|
||||||
|
@ -2,6 +2,12 @@ plugins {
|
|||||||
`kotlin-dsl`
|
`kotlin-dsl`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
kotlin {
|
||||||
|
jvmToolchain {
|
||||||
|
languageVersion.set(JavaLanguageVersion.of("17"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user