Attempt to compile twice, once only for annotations, then for everything else

This commit is contained in:
JPAV 2011-02-09 13:05:57 -06:00
parent acf89b9e68
commit c7f09e5130
2 changed files with 17 additions and 4 deletions

View File

@ -107,8 +107,9 @@ subprojects { subProject ->
// appropriately inject the common dependencies into each sub-project
dependencies {
// compile(libraries.logging)
// compile(libraries.logging_tools)
compile fileTree(dir: 'lib', includes: ['*.jar'])
// compile(libraries.logging)
compile(libraries.logging_tools)
compile( libraries.slf4j_api )
testCompile( libraries.junit )
testRuntime( libraries.slf4j_simple )
@ -120,6 +121,19 @@ subprojects { subProject ->
deployerJars "org.apache.maven.wagon:wagon-http:1.0-beta-6"
}
task compileAnnotations(type: Compile) {
classpath = sourceSets.main.compileClasspath
source = sourceSets.main.java.srcDirs
destinationDir = sourceSets.main.classesDir
options.define(compilerArgs: ['-proc:only'])
}
compileJava {
options.define(compilerArgs: ['-proc:none'])
}
compileJava.dependsOn compileAnnotations
sourceSets {
main {
compileClasspath += configurations.provided
@ -136,7 +150,7 @@ subprojects { subProject ->
test {
systemProperties['hibernate.test.validatefailureexpected'] = true
systemProperties['jboss.i18n.generate-proxies'] = true
// systemProperties['jboss.i18n.generate-proxies'] = true
maxHeapSize = "1024m"
}

View File

@ -4,7 +4,6 @@ apply plugin: 'antlr'
// todo : we need to jar up hibernate-testing.jar from here
dependencies {
compile fileTree(dir: 'lib', includes: ['*.jar'])
compile( libraries.commons_collections )
compile( libraries.jta )
compile( libraries.dom4j ) {