Skip to content

Commit

Permalink
Force class file format for Java 11
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-grouchnikov committed Dec 6, 2021
1 parent ce51466 commit 17b5672
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ allprojects {
archiveBaseName.set("${rootProject.name}-${project.name}")

manifest {
// add Aurora version, build JDK and build JDK vendor into the manifest file
// add Aurora version and automatic module name to each MANIFEST.MF
attributes["Aurora-Version"] =
"${project.property("VERSION_NAME")} ${project.property("VERSION_CODENAME")}"
if (project.hasProperty("POM_ARTIFACT_ID")) {
Expand All @@ -42,6 +42,13 @@ allprojects {
}
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
// Force class file format for Java 11
kotlinOptions {
jvmTarget = "11"
}
}

configurations {
all {
exclude(group = "org.jetbrains.compose.material", module = "material")
Expand Down

0 comments on commit 17b5672

Please sign in to comment.