Skip to content

Commit

Permalink
Fixed Gradle Auto JVM
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRedMagic committed May 27, 2024
1 parent eb4554e commit 079cdbd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@
/build/
/common/build/
/api/build/
/v1_20_4/build/
/v1_20_4/build/
/v1_20_5/build/
/common/.gradle/
/api/.gradle/
/v1_20_4/.gradle/
/v1_20_5/.gradle/
2 changes: 0 additions & 2 deletions v1_20_4/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

plugins {
kotlin("jvm") version "1.9.22"
id("io.papermc.paperweight.userdev") version "1.7.1"
Expand Down
14 changes: 8 additions & 6 deletions v1_20_5/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

plugins {
kotlin("jvm") version "1.9.22"
id("io.papermc.paperweight.userdev") version "1.7.1"
Expand All @@ -15,8 +13,10 @@ repositories {
}



dependencies {


paperweight.paperDevBundle("1.20.5-R0.1-SNAPSHOT")

implementation(project(":api"))
Expand All @@ -26,15 +26,17 @@ dependencies {

tasks {

assemble {
dependsOn(reobfJar)
}

compileKotlin {
kotlinOptions.jvmTarget = "17"
}

}

java {
disableAutoTargetJvm()
}

kotlin{

jvmToolchain(17)
}

0 comments on commit 079cdbd

Please sign in to comment.