diff 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
line wrap: on
line diff
--- a/init.gradle	Wed Sep 17 22:05:37 2014 +0100
+++ b/init.gradle	Fri Dec 12 20:59:40 2014 +0000
@@ -1,5 +1,11 @@
 import groovy.sql.*
 
+final GradleVersion gradleCurrent = GradleVersion.current()
+final GradleVersion gradleV20 = GradleVersion.version('2.0')
+println "Gradle Version: $gradleCurrent"
+if (gradleCurrent >= gradleV20) {
+    throw new RuntimeException("this init script does not function with Gradle 2.+, use init20.gradle")
+}
 gradle.ext.ssdtDevelkitLocation = gradle.ext.has('ssdtDevelkitLocation') ? gradle.ssdtDevelkitLocation : 'http://hg.ssdt-ohio.org/browse/public/develkit'
 
 ant.property(file: System.getProperty('user.home') + "/.ssdt/private.properties")