Skip to content
Snippets Groups Projects

fix: artifact-version needs to use Manifest#getMainAttributes

2 files
+ 2
2
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 1
1
@@ -8,7 +8,7 @@ Manifest manifest = new Manifest(
new FileInputStream(
new File("${build.workspace}/build/tmp/jar/MANIFEST.MF")));
def version = manifest.getAttributes().getValue(Attributes.Name.IMPLEMENTATION_VERSION)
def version = manifest.getMainAttributes().getValue(Attributes.Name.IMPLEMENTATION_VERSION)
println "Artifact version is $version"
build.addAction(
new ParametersAction([
Loading