Gradle CubaPlugin should be the same version as the other platform artifacts #PL-1990

This commit is contained in:
Yuriy Artamonov 2013-04-04 13:58:39 +00:00
parent f8a77cfa2c
commit 02cd53af8c

View File

@ -4,21 +4,21 @@
* Use is subject to license terms. * Use is subject to license terms.
*/ */
def defaultVersion = '4.0' def defaultVersion = '4.1'
def BUILD_VERSION = 'buildVersion' def BUILD_VERSION = 'buildVersion'
def BUILD_RELEASE = 'buildRelease'
def BUILD_VCS_NUMBER = 'buildVcsNumber' def BUILD_VCS_NUMBER = 'buildVcsNumber'
allprojects { allprojects {
ext.artifactGroup = 'com.haulmont.cuba' ext.artifactGroup = 'com.haulmont.cuba'
ext.artifactVersion = rootProject.hasProperty(BUILD_VERSION) ? rootProject[BUILD_VERSION] : defaultVersion ext.artifactVersion = rootProject.hasProperty(BUILD_VERSION) ?
ext.isSnapshot = !(rootProject.hasProperty(BUILD_RELEASE) && Boolean.valueOf(rootProject[BUILD_RELEASE])) rootProject[BUILD_VERSION].replace('-SNAPSHOT', '') : defaultVersion
ext.isSnapshot = rootProject.hasProperty(BUILD_VERSION) && rootProject[BUILD_VERSION].endsWith('-SNAPSHOT')
//ext.tomcatDir = rootDir.absolutePath + '/../tomcat' //ext.tomcatDir = rootDir.absolutePath + '/../tomcat'
} }
buildscript { buildscript {
def cubaPluginVersion = '1.5-SNAPSHOT' def cubaPluginVersion = '4.1-SNAPSHOT'
def docPluginVersion = '1.2.0-SNAPSHOT' def docPluginVersion = '1.2.0-SNAPSHOT'
def CUBA_PLUGIN_VERSION = 'cubaPluginVersion' def CUBA_PLUGIN_VERSION = 'cubaPluginVersion'