mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-11 17:17:32 +00:00
[ci skip] update buildscript
This commit is contained in:
1 file changed
+13
-19
+13
-19
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user