Skip to content
Snippets Groups Projects
Commit 1298289b authored by Nicholas Blair's avatar Nicholas Blair
Browse files

Merge branch 'use-mainAttributes' into 'master'

fix: artifact-version needs to use Manifest#getMainAttributes

getAttributes returns null

See merge request !3
parents 300638dc 0427946c
No related branches found
No related tags found
1 merge request!3fix: artifact-version needs to use Manifest#getMainAttributes
......@@ -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([
......
group 'edu.wisc.doit.gradle'
version '0.2.0'
version '0.2.1'
apply plugin: 'groovy'
apply plugin: 'idea'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment