comparison init.gradle @ 175:c3b7af90d1e4

start init script for gradle version 2.*
author smith@nwoca.org
date Fri, 12 Dec 2014 20:59:40 +0000
parents e949e86b570e
children 476b0c13b22e
comparison
equal deleted inserted replaced
174:e949e86b570e 175:c3b7af90d1e4
1 import groovy.sql.* 1 import groovy.sql.*
2 2
3 final GradleVersion gradleCurrent = GradleVersion.current()
4 final GradleVersion gradleV20 = GradleVersion.version('2.0')
5 println "Gradle Version: $gradleCurrent"
6 if (gradleCurrent >= gradleV20) {
7 throw new RuntimeException("this init script does not function with Gradle 2.+, use init20.gradle")
8 }
3 gradle.ext.ssdtDevelkitLocation = gradle.ext.has('ssdtDevelkitLocation') ? gradle.ssdtDevelkitLocation : 'http://hg.ssdt-ohio.org/browse/public/develkit' 9 gradle.ext.ssdtDevelkitLocation = gradle.ext.has('ssdtDevelkitLocation') ? gradle.ssdtDevelkitLocation : 'http://hg.ssdt-ohio.org/browse/public/develkit'
4 10
5 ant.property(file: System.getProperty('user.home') + "/.ssdt/private.properties") 11 ant.property(file: System.getProperty('user.home') + "/.ssdt/private.properties")
6 gradle.ext.ivyUserDir = ant.properties['ivy.default.ivy.user.dir'] ?: System.getProperty('user.home') + "/.ivy2" 12 gradle.ext.ivyUserDir = ant.properties['ivy.default.ivy.user.dir'] ?: System.getProperty('user.home') + "/.ivy2"
7 13