mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-08-10 17:55:44 +00:00
Reobfuscate jars before publishing
This commit is contained in:
parent
e2f308e995
commit
a34c7ef9b2
13
build.gradle
13
build.gradle
@ -163,6 +163,9 @@ task sourceJar(type: Jar) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
task devJar(type: Jar) {
|
task devJar(type: Jar) {
|
||||||
|
// hack: artificially depend on the reobf task here to get the normal jar to be overwritten before publishing
|
||||||
|
dependsOn reobf
|
||||||
|
|
||||||
from(sourceSets.main.output) {
|
from(sourceSets.main.output) {
|
||||||
include "**"
|
include "**"
|
||||||
}
|
}
|
||||||
@ -212,8 +215,6 @@ if(Files.exists(Paths.get("maven.properties"))) {
|
|||||||
artifactId archivesBaseName
|
artifactId archivesBaseName
|
||||||
version version_name
|
version version_name
|
||||||
|
|
||||||
from components.java
|
|
||||||
|
|
||||||
artifact sourceJar {
|
artifact sourceJar {
|
||||||
classifier "src"
|
classifier "src"
|
||||||
}
|
}
|
||||||
@ -222,13 +223,7 @@ if(Files.exists(Paths.get("maven.properties"))) {
|
|||||||
classifier "dev"
|
classifier "dev"
|
||||||
}
|
}
|
||||||
|
|
||||||
pom.withXml {
|
artifact jar
|
||||||
// NTM doesn't really feature any special runtime dependencies anyone would need, so blast those away
|
|
||||||
def node = asNode()
|
|
||||||
def dependencies = node.get("dependencies")
|
|
||||||
node.remove(dependencies)
|
|
||||||
node
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user