Fixed ambiguous version variable in org.eclipse.mdm.openatfx build file
Signed-off-by: Matthias Koller <m.koller@peak-solution.de>
diff --git a/org.eclipse.mdm.openatfx/build.gradle b/org.eclipse.mdm.openatfx/build.gradle
index 38e4910..5568ded 100644
--- a/org.eclipse.mdm.openatfx/build.gradle
+++ b/org.eclipse.mdm.openatfx/build.gradle
@@ -19,7 +19,7 @@
import de.undercouch.gradle.tasks.download.Download
-version '0.7.4'
+def atfxVersion = '0.7.4'
description = 'Downloads openATFX and publishes it to the local maven repository'
dependencies {
@@ -29,7 +29,6 @@
// actually we just need the org.asam.ods.* classes
compile "org.eclipse.mdm:org.eclipse.mdm.api.odsadapter:${version}"
-
testCompile 'org.apache.commons:commons-math:2.2'
}
@@ -38,24 +37,34 @@
exclude group: 'javax.xml.stream', module: 'stax-api'
}
+jar {
+ manifest {
+ attributes(
+ 'Implementation-Title' : 'openATFX',
+ 'Implementation-Version' : atfxVersion,
+ 'Implementation-URL' : 'https://sourceforge.net/projects/openatfx'
+ )
+ }
+}
+
task downloadOpenATFX(type: Download) {
acceptAnyCertificate true
overwrite false
- // use mirror subdomain of 'https://sourceforge.net/projects/openatfx/files/openatfx-${version}-jars.zip/download'
+ // use mirror subdomain of 'https://sourceforge.net/projects/openatfx/files/openatfx-${atfxVersion}-jars.zip/download'
// because gradle has problems establishing a ssl connection with sourceforge directly
- src "https://liquidtelecom.dl.sourceforge.net/project/openatfx/openatfx-${version}-jars.zip"
- dest file("${buildDir}/openatfx-${version}-jars.zip")
+ src "https://liquidtelecom.dl.sourceforge.net/project/openatfx/openatfx-${atfxVersion}-jars.zip"
+ dest file("${buildDir}/openatfx-${atfxVersion}-jars.zip")
outputs.file dest
}
task unzipOpenATFX(dependsOn: downloadOpenATFX, type: Copy) {
from zipTree(downloadOpenATFX.dest)
into buildDir
- outputs.dir file("${buildDir}/openatfx-${version}")
+ outputs.dir file("${buildDir}/openatfx-${atfxVersion}")
}
task copySource(dependsOn: unzipOpenATFX, type: Copy) {
- from file("${buildDir}/openatfx-${version}/src")
+ from file("${buildDir}/openatfx-${atfxVersion}/src")
into 'src'
}