[ci skip] update buildscript

This commit is contained in:
FalsePattern committed 2022-08-27 22:37:57 +02:00
1 parent 7c8c2cc917
commit c7ec32cd16
1 file changed
+13 -19
+13 -19
View File
@@ -1,4 +1,4 @@
//version: 1656003793falsepattern33
//version: 1656003793falsepattern36
/*
DO NOT CHANGE THIS FILE!
@@ -395,23 +395,19 @@ jar {
}
reobf {
if(usesMixins.toBoolean() && file(mixinSrg).exists()) {
if(usesMixins.toBoolean()) {
addExtraSrgFile mixinSrg
}
}
afterEvaluate {
if(usesMixins.toBoolean()) {
tasks.compileJava {
options.compilerArgs += [
"-AreobfSrgFile=${srgFile}",
"-AoutSrgFile=${mixinSrg}",
"-AoutRefMapFile=${mixinRefMap}",
// Elan: from what I understand they are just some linter configs so you get some warning on how to properly code
"-XDenableSunApiLintControl",
"-XDignore.symbol.file"
]
}
if(usesMixins.toBoolean()) {
tasks.compileJava {
options.compilerArgs += [
'-Xlint:-processing',
"-AreobfSrgFile=${srgFile}",
"-AoutSrgFile=${mixinSrg}",
"-AoutRefMapFile=${mixinRefMap}"
]
}
}
@@ -657,13 +653,11 @@ def getCredentials = {
}
//Publishing
publish.dependsOn(build)
publishing {
publications {
maven(MavenPublication) {
from components.java
if(usesShadowedDependencies.toBoolean()) {
artifact source: shadowJar, classifier: ""
}
artifact source: usesShadowedDependencies.toBoolean() ? shadowJar : jar, classifier: ""
artifact source: sourcesJar, classifier: "sources"
artifact source: usesShadowedDependencies.toBoolean() ? shadowDevJar : devJar, classifier: "dev"
if (apiPackage) {
@@ -672,7 +666,7 @@ publishing {
groupId = mavenGroupId
artifactId = mavenArtifactId + "-mc" + minecraftVersion
version = gitVersion()
version = modVersion
// remove extra garbage from minecraft and minecraftDeps configuration
pom.withXml {