From a34c7ef9b2ccfdca9dee9c4a940deaff93a0d6f0 Mon Sep 17 00:00:00 2001 From: MartinTheDragon Date: Mon, 8 Jun 2026 01:14:39 +0200 Subject: [PATCH] Reobfuscate jars before publishing --- build.gradle | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/build.gradle b/build.gradle index 5a6da512a..c948490da 100644 --- a/build.gradle +++ b/build.gradle @@ -163,6 +163,9 @@ task sourceJar(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) { include "**" } @@ -212,8 +215,6 @@ if(Files.exists(Paths.get("maven.properties"))) { artifactId archivesBaseName version version_name - from components.java - artifact sourceJar { classifier "src" } @@ -222,13 +223,7 @@ if(Files.exists(Paths.get("maven.properties"))) { classifier "dev" } - pom.withXml { - // 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 - } + artifact jar } } repositories {