HHH-8733 - General build cleanup

This commit is contained in:
Steve Ebersole 2013-11-22 21:20:27 -06:00
parent f9aa122b5e
commit ffecce514e
3 changed files with 21 additions and 8 deletions

View File

@ -173,22 +173,27 @@ subprojects { subProject ->
ext.aptGeneratedSourceDir = file( "${buildDir}/generated-src/apt/${name}" )
}
ext.standardJavacOptions = [
"-nowarn",
"-encoding", "UTF-8",
"-source", rootProject.javaLanguageLevel,
"-target", rootProject.javaLanguageLevel
]
tasks.withType( JavaCompile.class ).all { task->
task.options.define(
compilerArgs: [
"-nowarn",
"-encoding", "UTF-8",
"-source", rootProject.javaLanguageLevel,
"-target", rootProject.javaLanguageLevel,
]
compilerArgs: standardJavacOptions
)
}
ext.jbossLoggingToolClass = "org.jboss.logging.processor.apt.LoggingToolsProcessor"
// alter the compileJava (src/main/java javac task) to add JBoss Logging AP hooks
compileJava {
classpath += configurations.jbossLoggingTool
options.compilerArgs += [
"-processor", jbossLoggingToolClass,
"-s", "$sourceSets.main.aptGeneratedSourceDir.absolutePath",
"-Adebug=true",
"-AskipTranslations=true",

View File

@ -74,6 +74,7 @@ compileTestJava {
classpath += configurations.hibernateJpaModelGenTool
options.compilerArgs += [
"-processor", "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor",
"-s", "$sourceSets.test.aptGeneratedSourceDir.absolutePath"
]

View File

@ -32,8 +32,10 @@ def pomDescription() {
sourceSets {
test {
ext.enversDemoJavaDir = file( "src/demo/java" )
ext.enversDemoResourcesDir = file( "src/demo/resources" )
ext {
enversDemoJavaDir = file( "src/demo/java" )
enversDemoResourcesDir = file( "src/demo/resources" )
}
java {
srcDir enversDemoJavaDir
}
@ -45,6 +47,11 @@ sourceSets {
compileJava {
classpath += configurations.hibernateJpaModelGenTool
options.compilerArgs += [
"-processor", "$jbossLoggingToolClass,org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor"
]
}
jar {