Created
October 13, 2016 13:08
-
-
Save rajdavies/f01d87d9813277a39bdc81fb9070261f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/groovy | |
/** | |
* Add any project version properties to be productized here | |
*/ | |
def getReleaseVersions() { | |
// JBoss Fuse versions | |
def amqVersion = "5.11.0.redhat-630${FUSE_BUILD_NUM}" | |
def camelVersion = "2.17.0.redhat-630${FUSE_BUILD_NUM}" | |
def cxfVersion = "3.1.5.redhat-630${FUSE_BUILD_NUM}" | |
def hawtioVersion = "1.4.redhat-630${FUSE_BUILD_NUM}" | |
def jbossFuseVersion = "6.3.0.redhat-${FUSE_BUILD_NUM}" | |
def karafVersion = "2.4.0.redhat-630${FUSE_BUILD_NUM}" | |
// Fuse BXMS Integration versions | |
def fuseBxmsIntegrationVersion = "1.5.0.redhat-630018" | |
def kieVersion = "6.4.0.Final-redhat-8" | |
// Other versions | |
def jsonSchema2PojoVersion = "0.4.16.redhat-2" | |
def springBootVersion = "1.4.1.RELEASE" | |
[ | |
['activemq.version', amqVersion], | |
['cxf-version', cxfVersion], | |
['cxf.version', cxfVersion], | |
['cxf.codegen-plugin.version', cxfVersion], | |
['cxf.karaf.version', karafVersion], | |
['cxf.plugin.version', cxfVersion], | |
['drools.version', kieVersion], | |
['fuse-version', jbossFuseVersion], | |
['fuse.version', jbossFuseVersion], | |
['jboss.fuse.bom.version', jbossFuseVersion], | |
['jsonschema2pojo.version', jsonSchema2PojoVersion], | |
['karaf-version', karafVersion], | |
['karaf.version', karafVersion], | |
['kie.version', kieVersion], | |
['kie-camel.version', fuseBxmsIntegrationVersion], | |
['hawtio.version', hawtioVersion], | |
['spring-boot.version', springBootVersion], | |
['camel-spring-boot-bom.spring-boot.version', springBootVersion], | |
['spring-boot-plugin.version', springBootVersion] | |
] | |
} | |
def getVersion(String versionProperty, def versionList = []) { | |
for (version in versionList) { | |
if (version[0].equals(versionProperty)) { | |
return version[1] | |
} | |
} | |
return "" | |
} | |
return this | |
Contact GitHub API Training Shop Blog About | |
© 2016 GitHub, Inc. Terms Privacy Security Status Help |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment