From 474232e4bdf41a0751adb7f1fcde1c56f6a05f5d Mon Sep 17 00:00:00 2001 From: shedaniel Date: Sat, 25 Sep 2021 20:48:49 +0800 Subject: [PATCH] Fix version being 0.0.0 Signed-off-by: shedaniel --- build.gradle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 0115827b..3c4f744a 100644 --- a/build.gradle +++ b/build.gradle @@ -163,10 +163,6 @@ task mainJar(type: Jar, dependsOn: jar) { from zipTree(jar.archiveFile) archiveClassifier = "main" - manifest { - attributes 'Implementation-Version': project.version + ' Build(' + buildNum + ')' - } - from configurations.bootstrap.collect { it.isDirectory() ? it : zipTree(it) } } @@ -176,6 +172,10 @@ task downgradeJava(type: BridgeTransformingTask, dependsOn: mainJar) { toVersion = JavaVersion.VERSION_11 classpath.from configurations.compileClasspath flags.add "insertRecordConstructorProperties" + + manifest { + attributes 'Implementation-Version': project.version + } } task sourcesJar(type: Jar, dependsOn: classes) {