Skip to content

Commit

Permalink
Added a task for dgmConverter
Browse files Browse the repository at this point in the history
  • Loading branch information
melix committed Mar 20, 2012
1 parent ecab9dd commit 396f121
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.codehaus.groovy.tools.DgmConverter

apply plugin: 'groovy'
apply plugin: 'codenarc'
apply plugin: 'checkstyle'
Expand Down Expand Up @@ -247,6 +249,13 @@ task ensureGrammars {
}
}

task dgmConverter(type: JavaExec, dependsOn: 'classes') {
description = 'Generates DGM info file required for faster startup.'
classpath = files(file('target/classes')) + configurations.compile
main = 'org.codehaus.groovy.tools.DgmConverter'
args = ['--info']
}

compileJava {
dependsOn ensureGrammars
}
Expand Down
1 change: 1 addition & 0 deletions gradle/assemble.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ ext.commonOsgiManifest = {
}

jar {
dependsOn('dgmConverter')
metaInf binaryJarsMetaInf
manifest = osgiManifest {
symbolicName = 'groovy'
Expand Down

0 comments on commit 396f121

Please sign in to comment.