1- // version: 1641429628falsepattern18
1+ // version: 1641429628falsepattern21
22/*
33DO NOT CHANGE THIS FILE!
44
@@ -30,9 +30,14 @@ buildscript {
3030 name = " jitpack"
3131 url = " https://jitpack.falsepattern.com/"
3232 }
33+ maven {
34+ name = " mavenpattern"
35+ url = " https://maven.falsepattern.com/"
36+ }
3337 }
3438 dependencies {
3539 classpath ' com.github.GTNewHorizons:ForgeGradle:1.2.6'
40+ classpath ' com.falsepattern:jtweaker:0.2.1'
3641 }
3742}
3843
@@ -44,7 +49,7 @@ plugins {
4449 id(" com.palantir.git-version" ) version(" 0.12.3" )
4550 id(" maven-publish" )
4651}
47-
52+ apply plugin : ' com.falsepattern.jtweaker '
4853apply plugin : ' forge'
4954
5055def projectJavaVersion = JavaLanguageVersion . of(8 )
@@ -96,6 +101,7 @@ checkPropertyExists("mavenGroupId")
96101checkPropertyExists(" mavenArtifactId" )
97102checkPropertyExists(" hasMixinDeps" )
98103checkPropertyExists(" mixinPreinitConfig" )
104+ checkPropertyExists(" remapStubs" )
99105
100106
101107String javaSourceDir = " src/main/java/"
@@ -284,6 +290,9 @@ task relocateShadowJar(type: ConfigureShadowRelocation) {
284290}
285291
286292shadowJar {
293+ if (remapStubs. toBoolean()) {
294+ dependsOn(removeStub)
295+ }
287296 project. configurations. shadeCompile. each { dep ->
288297 from(project. zipTree(dep)) {
289298 exclude ' META-INF' , ' META-INF/**'
@@ -300,6 +309,9 @@ shadowJar {
300309}
301310
302311jar {
312+ if (remapStubs. toBoolean()) {
313+ dependsOn(removeStub)
314+ }
303315 project. configurations. shadeCompile. each { dep ->
304316 from(project. zipTree(dep)) {
305317 exclude ' META-INF' , ' META-INF/**'
@@ -456,6 +468,9 @@ task sourcesJar(type: Jar) {
456468}
457469
458470task shadowDevJar (type : ShadowJar ) {
471+ if (remapStubs. toBoolean()) {
472+ dependsOn(removeStub)
473+ }
459474 project. configurations. shadeCompile. each { dep ->
460475 from(project. zipTree(dep)) {
461476 exclude ' META-INF' , ' META-INF/**'
@@ -485,6 +500,9 @@ task circularResolverJar(type: Jar) {
485500}
486501
487502task devJar (type : Jar ) {
503+ if (remapStubs. toBoolean()) {
504+ dependsOn(removeStub)
505+ }
488506 project. configurations. shadeCompile. each { dep ->
489507 from(project. zipTree(dep)) {
490508 exclude ' META-INF' , ' META-INF/**'
0 commit comments