Skip to content

Commit

Permalink
build: specify target java version
Browse files Browse the repository at this point in the history
  • Loading branch information
Cubxity committed Oct 24, 2021
1 parent 80495c7 commit 7c92db9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ subprojects {
freeCompilerArgs = listOf("-Xopt-in=kotlin.RequiresOptIn")
}
}
configure<JavaPluginExtension> {
targetCompatibility = JavaVersion.VERSION_1_8
}
configure<PublishingExtension> {
repositories {
maven {
Expand Down
11 changes: 10 additions & 1 deletion platforms/minestom/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,22 @@ dependencies {
api(project(":unifiedmetrics-core"))

compileOnly("com.github.Minestom:Minestom:a3ff3b25c4")
testImplementation("com.github.Minestom:Minestom:a3ff3b25c4")
testImplementation("com.github.Minestom:Minestom:9152c40753")
}

java {
targetCompatibility = JavaVersion.VERSION_11
}

tasks {
shadowJar {
archiveClassifier.set("")
}
compileKotlin {
kotlinOptions {
jvmTarget = "11"
}
}
processResources {
duplicatesStrategy = DuplicatesStrategy.INCLUDE

Expand Down

0 comments on commit 7c92db9

Please sign in to comment.