Skip to content

Commit

Permalink
Merge pull request #4 from way-zer/fix-j8
Browse files Browse the repository at this point in the history
MOD兼容java8
  • Loading branch information
way-zer authored Feb 16, 2022
2 parents 4f8fb9b + 4a210a7 commit 39a1041
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contents/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ subprojects {
compileOnly("com.github.Anuken.Mindustry:core:v135")
}

tasks.withType(JavaCompile::class) {
targetCompatibility = JavaVersion.VERSION_1_8.toString()
sourceCompatibility = JavaVersion.VERSION_16.toString()
options.compilerArgs.addAll(listOf("--release", "8"))
}

publishing {
publications {
create<MavenPublication>("maven") {
Expand Down

0 comments on commit 39a1041

Please sign in to comment.