Skip to content

Commit

Permalink
Changed min java target to 11
Browse files Browse the repository at this point in the history
  • Loading branch information
nshtengauer committed Dec 13, 2024
1 parent 1ee8610 commit b254b51
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 27 deletions.
7 changes: 2 additions & 5 deletions modules/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@ apply from: addon(addons_propertyClass)

sourceSets {
main.java.srcDirs = ['kotlin']
main.resources.srcDirs = ['resources']
}

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
kotlin {
jvmToolchain(11)
}

maven {
Expand Down
7 changes: 5 additions & 2 deletions modules/core/native/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
apply from: addon(addons_mavenPublish)
apply from: addon(addons_nativeCompilation)

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}

compilation {
baseName = "lib"
Expand Down
7 changes: 2 additions & 5 deletions modules/jogl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ apply from: addon(addons_mavenPublish)

sourceSets {
main.java.srcDirs = ['kotlin']
test.java.srcDirs = ['test']
}

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
kotlin {
jvmToolchain(11)
}

maven {
Expand Down
7 changes: 2 additions & 5 deletions modules/libgdx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ apply from: addon(addons_mavenPublish)

sourceSets {
main.java.srcDirs = ['kotlin']
test.java.srcDirs = ['test']
}

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
kotlin {
jvmToolchain(11)
}

maven {
Expand Down
7 changes: 2 additions & 5 deletions modules/lwjgl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ apply from: addon(addons_mavenPublish)

sourceSets {
main.java.srcDirs = ['kotlin']
test.java.srcDirs = ['test']
}

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
kotlin {
jvmToolchain(11)
}

maven {
Expand Down
7 changes: 2 additions & 5 deletions modules/lwjgl2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ apply from: addon(addons_mavenPublish)

sourceSets {
main.java.srcDirs = ['kotlin']
test.java.srcDirs = ['test']
}

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
kotlin {
jvmToolchain(11)
}

maven {
Expand Down

0 comments on commit b254b51

Please sign in to comment.