1
- // version: 1656003793falsepattern33
1
+ // version: 1656003793falsepattern36
2
2
/*
3
3
DO NOT CHANGE THIS FILE!
4
4
@@ -395,23 +395,19 @@ jar {
395
395
}
396
396
397
397
reobf {
398
- if (usesMixins. toBoolean() && file(mixinSrg) . exists() ) {
398
+ if (usesMixins. toBoolean()) {
399
399
addExtraSrgFile mixinSrg
400
400
}
401
401
}
402
402
403
- afterEvaluate {
404
- if (usesMixins. toBoolean()) {
405
- tasks. compileJava {
406
- options. compilerArgs + = [
407
- " -AreobfSrgFile=${ srgFile} " ,
408
- " -AoutSrgFile=${ mixinSrg} " ,
409
- " -AoutRefMapFile=${ mixinRefMap} " ,
410
- // Elan: from what I understand they are just some linter configs so you get some warning on how to properly code
411
- " -XDenableSunApiLintControl" ,
412
- " -XDignore.symbol.file"
413
- ]
414
- }
403
+ if (usesMixins. toBoolean()) {
404
+ tasks. compileJava {
405
+ options. compilerArgs + = [
406
+ ' -Xlint:-processing' ,
407
+ " -AreobfSrgFile=${ srgFile} " ,
408
+ " -AoutSrgFile=${ mixinSrg} " ,
409
+ " -AoutRefMapFile=${ mixinRefMap} "
410
+ ]
415
411
}
416
412
}
417
413
@@ -657,13 +653,11 @@ def getCredentials = {
657
653
}
658
654
659
655
// Publishing
656
+ publish. dependsOn(build)
660
657
publishing {
661
658
publications {
662
659
maven(MavenPublication ) {
663
- from components. java
664
- if (usesShadowedDependencies. toBoolean()) {
665
- artifact source : shadowJar, classifier : " "
666
- }
660
+ artifact source : usesShadowedDependencies. toBoolean() ? shadowJar : jar, classifier: " "
667
661
artifact source : sourcesJar, classifier : " sources"
668
662
artifact source : usesShadowedDependencies. toBoolean() ? shadowDevJar : devJar, classifier: " dev"
669
663
if (apiPackage) {
@@ -672,7 +666,7 @@ publishing {
672
666
673
667
groupId = mavenGroupId
674
668
artifactId = mavenArtifactId + " -mc" + minecraftVersion
675
- version = gitVersion()
669
+ version = modVersion
676
670
677
671
// remove extra garbage from minecraft and minecraftDeps configuration
678
672
pom. withXml {
0 commit comments