HHH-8733 - General build cleanup
This commit is contained in:
parent
f9aa122b5e
commit
ffecce514e
17
build.gradle
17
build.gradle
|
@ -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",
|
||||
|
|
|
@ -74,6 +74,7 @@ compileTestJava {
|
|||
classpath += configurations.hibernateJpaModelGenTool
|
||||
|
||||
options.compilerArgs += [
|
||||
"-processor", "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor",
|
||||
"-s", "$sourceSets.test.aptGeneratedSourceDir.absolutePath"
|
||||
]
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue