1
- // version: 1641429628falsepattern18
1
+ // version: 1641429628falsepattern21
2
2
/*
3
3
DO NOT CHANGE THIS FILE!
4
4
@@ -30,9 +30,14 @@ buildscript {
30
30
name = " jitpack"
31
31
url = " https://jitpack.falsepattern.com/"
32
32
}
33
+ maven {
34
+ name = " mavenpattern"
35
+ url = " https://maven.falsepattern.com/"
36
+ }
33
37
}
34
38
dependencies {
35
39
classpath ' com.github.GTNewHorizons:ForgeGradle:1.2.6'
40
+ classpath ' com.falsepattern:jtweaker:0.2.1'
36
41
}
37
42
}
38
43
@@ -44,7 +49,7 @@ plugins {
44
49
id(" com.palantir.git-version" ) version(" 0.12.3" )
45
50
id(" maven-publish" )
46
51
}
47
-
52
+ apply plugin : ' com.falsepattern.jtweaker '
48
53
apply plugin : ' forge'
49
54
50
55
def projectJavaVersion = JavaLanguageVersion . of(8 )
@@ -96,6 +101,7 @@ checkPropertyExists("mavenGroupId")
96
101
checkPropertyExists(" mavenArtifactId" )
97
102
checkPropertyExists(" hasMixinDeps" )
98
103
checkPropertyExists(" mixinPreinitConfig" )
104
+ checkPropertyExists(" remapStubs" )
99
105
100
106
101
107
String javaSourceDir = " src/main/java/"
@@ -284,6 +290,9 @@ task relocateShadowJar(type: ConfigureShadowRelocation) {
284
290
}
285
291
286
292
shadowJar {
293
+ if (remapStubs. toBoolean()) {
294
+ dependsOn(removeStub)
295
+ }
287
296
project. configurations. shadeCompile. each { dep ->
288
297
from(project. zipTree(dep)) {
289
298
exclude ' META-INF' , ' META-INF/**'
@@ -300,6 +309,9 @@ shadowJar {
300
309
}
301
310
302
311
jar {
312
+ if (remapStubs. toBoolean()) {
313
+ dependsOn(removeStub)
314
+ }
303
315
project. configurations. shadeCompile. each { dep ->
304
316
from(project. zipTree(dep)) {
305
317
exclude ' META-INF' , ' META-INF/**'
@@ -456,6 +468,9 @@ task sourcesJar(type: Jar) {
456
468
}
457
469
458
470
task shadowDevJar (type : ShadowJar ) {
471
+ if (remapStubs. toBoolean()) {
472
+ dependsOn(removeStub)
473
+ }
459
474
project. configurations. shadeCompile. each { dep ->
460
475
from(project. zipTree(dep)) {
461
476
exclude ' META-INF' , ' META-INF/**'
@@ -485,6 +500,9 @@ task circularResolverJar(type: Jar) {
485
500
}
486
501
487
502
task devJar (type : Jar ) {
503
+ if (remapStubs. toBoolean()) {
504
+ dependsOn(removeStub)
505
+ }
488
506
project. configurations. shadeCompile. each { dep ->
489
507
from(project. zipTree(dep)) {
490
508
exclude ' META-INF' , ' META-INF/**'
0 commit comments