HHH-8733 - General build cleanup

This commit is contained in:
Steve Ebersole 2013-11-22 19:46:05 -06:00
parent 50d17da870
commit f9aa122b5e
3 changed files with 17 additions and 13 deletions

View File

@ -202,19 +202,6 @@ subprojects { subProject ->
}
}
// alter the compileTestJava (src/test/java javac task) to add AP hooks
compileTestJava {
options.compilerArgs += [
"-s", "$sourceSets.test.aptGeneratedSourceDir.absolutePath"
]
doFirst {
if ( !sourceSets.test.aptGeneratedSourceDir.exists() ) {
sourceSets.test.aptGeneratedSourceDir.mkdirs()
}
}
}
task generateSources(type: Task)
jar {

View File

@ -69,8 +69,19 @@ jar {
}
// alter the compileTestJava (src/test/java javac task) to add AP hooks
compileTestJava {
classpath += configurations.hibernateJpaModelGenTool
options.compilerArgs += [
"-s", "$sourceSets.test.aptGeneratedSourceDir.absolutePath"
]
doFirst {
if ( !sourceSets.test.aptGeneratedSourceDir.exists() ) {
sourceSets.test.aptGeneratedSourceDir.mkdirs()
}
}
}

View File

@ -30,6 +30,12 @@ sourceSets.main {
resources.srcDir xsdDir
}
compileTestJava {
options.compilerArgs += [
"-proc:none"
]
}
jar {
manifest {
attributes 'Implementation-Title' : '${project.name}',