Skip to content

Commit

Permalink
Compile as Java 8 bytecode
Browse files Browse the repository at this point in the history
Because Oracle still releases JRE8 on Windows
  • Loading branch information
gregorbg committed Jan 1, 2024
1 parent 6d2a500 commit 0fc83eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions buildSrc/src/main/kotlin/configurations/Languages.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package configurations

import org.gradle.api.Project
import org.gradle.api.plugins.JavaPluginExtension
import org.gradle.api.JavaVersion
import org.gradle.jvm.toolchain.JavaLanguageVersion
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.repositories
Expand All @@ -19,6 +20,9 @@ object Languages {
languageVersion.set(JavaLanguageVersion.of(11))
}

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

withJavadocJar()
withSourcesJar()
}
Expand Down

0 comments on commit 0fc83eb

Please sign in to comment.