use paperweight
This commit is contained in:
13
build.gradle
13
build.gradle
@@ -1,5 +1,8 @@
|
|||||||
|
import io.papermc.paperweight.userdev.ReobfArtifactConfiguration
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'java'
|
id 'java'
|
||||||
|
id 'io.papermc.paperweight.userdev' version '2.0.0-beta.17'
|
||||||
id 'com.gradleup.shadow' version '8.3.6'
|
id 'com.gradleup.shadow' version '8.3.6'
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -15,7 +18,7 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly 'io.papermc.paper:paper-api:1.21.5-R0.1-SNAPSHOT'
|
paperweight.paperDevBundle('1.21.5-R0.1-SNAPSHOT')
|
||||||
implementation 'org.bstats:bstats-bukkit:3.1.0'
|
implementation 'org.bstats:bstats-bukkit:3.1.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,15 +29,11 @@ shadowJar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.jar {
|
tasks.jar {
|
||||||
manifest {
|
paperweight.reobfArtifactConfiguration = ReobfArtifactConfiguration.getMOJANG_PRODUCTION()
|
||||||
attributes['paperweight-mappings-namespace'] = 'mojang'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.shadowJar {
|
tasks.shadowJar {
|
||||||
manifest {
|
paperweight.reobfArtifactConfiguration = ReobfArtifactConfiguration.getMOJANG_PRODUCTION()
|
||||||
attributes['paperweight-mappings-namespace'] = 'mojang'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
|
Reference in New Issue
Block a user