diff init20.gradle @ 203:e90ce1d50d85

add java version display
author smith@nwoca.org
date Mon, 31 Aug 2015 21:10:18 +0100
parents 8aab0c2c1259
children a3c507b868a9
line wrap: on
line diff
--- a/init20.gradle	Fri Aug 14 16:13:24 2015 +0100
+++ b/init20.gradle	Mon Aug 31 21:10:18 2015 +0100
@@ -4,6 +4,8 @@
 final GradleVersion gradleCurrent = GradleVersion.current()
 final GradleVersion gradleV20 = GradleVersion.version('2.0')
 println "Gradle Version: $gradleCurrent"
+println "Java Version: ${System.getProperty('java.version')}"
+
 if (gradleCurrent < gradleV20) {
     throw new RuntimeException("this init script requires Gradle version 2.0 or higher")
 }
@@ -415,7 +417,7 @@
             if (root.useIndy()) {
                 def groovyIndy = p.configurations.compile.files.find { f -> f.name.startsWith('groovy-all') && f.name.contains('-indy') }
                 if (groovyIndy) {
- //                   println "enabling indy compilation on $p"
+                    println "enabling indy compilation on $p"
                     [compileGroovy.groovyOptions, compileTestGroovy.groovyOptions]*.with {
                         optimizationOptions = [indy: true]
                     }