Browse files

[build] restructured project that uses separate source set for transf…

…orms to be more idiomatic gradle.
  • Loading branch information...
1 parent da4e74f commit 69d9c622eee33952867752d66be77e3c72166adc @alkemist alkemist committed with graemerocher Dec 10, 2011
Showing with 15 additions and 14 deletions.
  1. +15 −14 grails-plugin-gsp/build.gradle
View
29 grails-plugin-gsp/build.gradle
@@ -1,24 +1,25 @@
-dependencies {
- compile "commons-lang:commons-lang:$commonsLangVersion"
- compile project(":grails-web"),
- project(":grails-plugin-codecs"),
- project(":grails-logging"),
- project(":grails-plugin-controllers")
-}
sourceSets {
- main {
- compileClasspath = files(configurations.compile, ast.output)
- }
ast {
groovy.srcDirs = ['src/ast/groovy']
resources.srcDirs = []
}
- test {
- compileClasspath = files(ast.output, configurations.testCompile)
- runtimeClasspath = files(ast.output, configurations.testCompile, test.output)
- }
}
+
+configurations {
+ compile.extendsFrom astRuntime
+}
+
+dependencies {
+ compile "commons-lang:commons-lang:$commonsLangVersion",
+ sourceSets.ast.output,
+ project(":grails-plugin-codecs"),
+ project(":grails-logging")
+
+ astCompile project(":grails-web"),
+ project(":grails-plugin-controllers")
+}
+
test {
maxParallelForks = 4
forkEvery = 100

0 comments on commit 69d9c62

Please sign in to comment.