Skip to content

Commit

Permalink
Avoid resolution of compile dependencies at configuration time
Browse files Browse the repository at this point in the history
  • Loading branch information
melix committed Dec 4, 2016
1 parent 93dad60 commit 5338bfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Expand Up @@ -372,7 +372,7 @@ ext.modules = {
task dgmConverter(dependsOn:compileJava) {
description = 'Generates DGM info file required for faster startup.'
def classesDir = sourceSets.main.output.classesDir
def classpath = files(classesDir, configurations.compile).asPath
def classpath = files(classesDir, configurations.compile)

//main = 'org.codehaus.groovy.tools.DgmConverter'
//args = ['--info', classesDir.absolutePath]
Expand All @@ -381,7 +381,7 @@ task dgmConverter(dependsOn:compileJava) {
// we use ant.java because Gradle is a bit "too smart" with JavaExec
// as it will invalidate the task if classpath changes, which will
// happen once Groovy files are compiled
ant.java(classname:'org.codehaus.groovy.tools.DgmConverter', classpath: classpath) {
ant.java(classname:'org.codehaus.groovy.tools.DgmConverter', classpath: classpath.asPath) {
arg(value: '--info')
arg(value: classesDir.absolutePath)
}
Expand Down

0 comments on commit 5338bfc

Please sign in to comment.