comparison init40.gradle @ 272:1d63556430a6

set environment at project level. remove tests for -indy jars
author smith@nwoca.org
date Thu, 10 Jan 2019 17:22:09 +0000
parents 16c2e0ea6501
children f5c641647fc6
comparison
equal deleted inserted replaced
271:16c2e0ea6501 272:1d63556430a6
248 } 248 }
249 249
250 } 250 }
251 251
252 subprojects { 252 subprojects {
253
254 it.ext.environment = gradle.environment
253 255
254 dependencyLocking { 256 dependencyLocking {
255 if (gradle.branch.isRelease() ) { 257 if (gradle.branch.isRelease() ) {
256 lockAllConfigurations() 258 lockAllConfigurations()
257 } 259 }
486 488
487 } 489 }
488 490
489 root.subprojects { p -> 491 root.subprojects { p ->
490 if (root.useIndy()) { 492 if (root.useIndy()) {
491 def groovyIndy = p.configurations.compile.files.find { f -> f.name.startsWith('groovy-all') && f.name.contains('-indy') } 493 println "enabling indy compilation on $p"
492 if (groovyIndy) { 494 [compileGroovy.groovyOptions, compileTestGroovy.groovyOptions]*.with {
493 println "enabling indy compilation on $p" 495 optimizationOptions = [indy: true]
494 [compileGroovy.groovyOptions, compileTestGroovy.groovyOptions]*.with {
495 optimizationOptions = [indy: true]
496 }
497 } 496 }
498 } 497 }
499 } 498 }
500 } 499 }
501 } 500 }