HHH-8142 - Create a 'compile' task that performs all copmpilations

This commit is contained in:
Steve Ebersole 2013-04-04 13:42:17 -05:00
parent 26868ad314
commit d6fe409a48
1 changed files with 6 additions and 2 deletions

View File

@ -94,7 +94,6 @@ subprojects { subProject ->
}
ext.toolsJar = file("${System.getProperty('java.home')}/../lib/tools.jar")
// appropriately inject the common dependencies into each sub-project
dependencies {
compile( libraries.logging )
@ -119,12 +118,17 @@ subprojects { subProject ->
jaxb( libraries.jaxb2_ant )
deployerJars "org.apache.maven.wagon:wagon-http:1.0"
}
if(ext.toolsJar.exists()){
ext.toolsJar = file("${System.getProperty('java.home')}/../lib/tools.jar")
if ( ext.toolsJar.exists() ) {
dependencies{
testCompile files( toolsJar )
}
}
task compile
compile.dependsOn compileJava, compileTestJava
sourceSets.main {
compileClasspath += configurations.provided
}