mirror of
https://github.com/jellyfin/jellyfin-sdk-kotlin.git
synced 2024-11-26 23:50:32 +00:00
Lower Java toolchain version to 8 (#865)
This commit is contained in:
parent
f4b5963d91
commit
c61075e93c
@ -5,7 +5,7 @@ import org.gradle.api.Project
|
|||||||
*/
|
*/
|
||||||
fun Project.getProperty(name: String): String? {
|
fun Project.getProperty(name: String): String? {
|
||||||
// sample.var --> SAMPLE_VAR
|
// sample.var --> SAMPLE_VAR
|
||||||
val environmentName = name.toUpperCase().replace(".", "_")
|
val environmentName = name.uppercase().replace(".", "_")
|
||||||
val value = findProperty(name)?.toString() ?: System.getenv(environmentName) ?: null
|
val value = findProperty(name)?.toString() ?: System.getenv(environmentName) ?: null
|
||||||
logger.debug("getProperty($name): $environmentName - found=${!value.isNullOrBlank()}")
|
logger.debug("getProperty($name): $environmentName - found=${!value.isNullOrBlank()}")
|
||||||
return value
|
return value
|
||||||
|
@ -8,7 +8,7 @@ kotlin {
|
|||||||
|
|
||||||
jvm()
|
jvm()
|
||||||
|
|
||||||
jvmToolchain(17)
|
jvmToolchain(8)
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
all {
|
all {
|
||||||
|
@ -8,7 +8,7 @@ kotlin {
|
|||||||
|
|
||||||
jvm()
|
jvm()
|
||||||
|
|
||||||
jvmToolchain(17)
|
jvmToolchain(8)
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
all {
|
all {
|
||||||
|
@ -12,7 +12,7 @@ kotlin {
|
|||||||
publishAllLibraryVariants()
|
publishAllLibraryVariants()
|
||||||
}
|
}
|
||||||
|
|
||||||
jvmToolchain(17)
|
jvmToolchain(8)
|
||||||
|
|
||||||
applyDefaultHierarchyTemplate()
|
applyDefaultHierarchyTemplate()
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ kotlin {
|
|||||||
|
|
||||||
jvm()
|
jvm()
|
||||||
|
|
||||||
jvmToolchain(17)
|
jvmToolchain(8)
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
all {
|
all {
|
||||||
|
@ -7,7 +7,7 @@ kotlin {
|
|||||||
|
|
||||||
jvm()
|
jvm()
|
||||||
|
|
||||||
jvmToolchain(17)
|
jvmToolchain(8)
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
all {
|
all {
|
||||||
|
Loading…
Reference in New Issue
Block a user