Skip to content

Commit 594d042

Browse files
committed
jar renaming reimplemented
1 parent 919b2dd commit 594d042

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build.gradle

+7
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ var generateModMetadata = tasks.register("generateModMetadata", ProcessResources
159159
from "src/main/templates"
160160
into "build/generated/sources/modMetadata"
161161
}
162+
162163
// Include the output of "generateModMetadata" as an input directory for the build
163164
// this works with both building through Gradle and the IDE.
164165
sourceSets.main.resources.srcDir generateModMetadata
@@ -179,6 +180,12 @@ publishing {
179180
}
180181
}
181182

183+
//Naming of the built mod jar file
184+
tasks.named('jar').configure {
185+
archiveBaseName.set(mod_name.replace(" " , ""))
186+
archiveVersion.set("${minecraft_version}-(v.${mod_version}-NEO)")
187+
}
188+
182189
tasks.withType(JavaCompile).configureEach {
183190
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
184191
}

0 commit comments

Comments
 (0)