Attempt to compile twice, once only for annotations, then for everything else
This commit is contained in:
parent
acf89b9e68
commit
c7f09e5130
20
build.gradle
20
build.gradle
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue