4.0.0 sonargraph-build-client Sonargraph Build Client jar com.hello2morrow 9.4.3 sonargraph-integration-parent parent/pom.xml target.clients src/main/resources true src/main/groovy src/test/groovy target.clients/test-classes org.apache.maven.plugins maven-surefire-plugin 2.19.1 -Xmx2048m -ea -Djava.awt.headless=true -Dlogback.directory=${logback.directory} org.apache.maven.plugins maven-compiler-plugin org.codehaus.groovy.maven gmaven-plugin 1.0 validate execute import java.util.Date import java.text.MessageFormat def vartimestamp = MessageFormat.format("{0,date,yyyy}", new Date()) project.properties['build.year'] = vartimestamp /** for version "9.0.0": * sonargraph.version.major=9 * sonargraph.version.minor=0 * sonargraph.version.micro=0 * sonargraph.version=9.0.0 **/ String unqualifiedVersion = project.properties['unqualifiedVersion'] //Set default info if version properties are not set. if (unqualifiedVersion == null) { unqualifiedVersion = project.version.replace("-SNAPSHOT", ""); } project.properties['sonargraph.version.major']=unqualifiedVersion.split("\\.")[0] log.info("sonargraph.version.major=" + project.properties['sonargraph.version.major']) project.properties['sonargraph.version.minor']=unqualifiedVersion.split("\\.")[1] log.info("sonargraph.version.minor=" + project.properties['sonargraph.version.minor']) project.properties['sonargraph.version.micro']=unqualifiedVersion.split("\\.")[2] log.info("sonargraph.version.micro=" + project.properties['sonargraph.version.micro']) project.properties['sonargraph.version']=unqualifiedVersion log.info("sonargraph.version=" + project.properties['sonargraph.version']) def writer1 = new FileWriter(new File(project.basedir.absolutePath.replace('\\','/') + '/gradle.properties')) def props = new Properties(); props.put("version", project.properties['sonargraph.version']); try { props.store(writer1, 'Version property for gradle generated from poms version') writer1.flush() } finally { writer1.close() } def writer2 = new FileWriter(new File(project.basedir.absolutePath.replace('\\','/') + '/../com.hello2morrow.sonargraph.build.client.gradle/gradle.properties')) try { props.store(writer2, 'Version property for gradle generated from poms version') writer2.flush() } finally { writer2.close() } org.apache.maven.plugins maven-jar-plugin 2.6 target.clients/classes/META-INF/MANIFEST.MF org.eclipse.m2e lifecycle-mapping 1.0.0 org.codehaus.groovy.maven gmaven-plugin [1.0,) execute org.eclipse.tycho org.eclipse.osgi 3.10.101.v20150820-1432 provided com.hello2morrow sonargraph-integration-access 3.1.0 com.googlecode.json-simple json-simple 1.1.1