HHH-8733 - General build cleanup
This commit is contained in:
parent
cacede9751
commit
49ff975f7d
15
build.gradle
15
build.gradle
|
@ -82,14 +82,6 @@ def osgiDescription() {
|
||||||
return pomDescription()
|
return pomDescription()
|
||||||
}
|
}
|
||||||
|
|
||||||
def boolean needsLoggingGeneration() {
|
|
||||||
// by default
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
def SourceSet getMetaGenTargetSourceSet() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
@ -196,14 +188,7 @@ subprojects { subProject ->
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( subProject.needsLoggingGeneration() ) {
|
|
||||||
addLoggingProcessor( sourceSets.main )
|
addLoggingProcessor( sourceSets.main )
|
||||||
}
|
|
||||||
|
|
||||||
final SourceSet metaGenSourceSet = subProject.getMetaGenTargetSourceSet();
|
|
||||||
if ( metaGenSourceSet != null ) {
|
|
||||||
addMetaGenProcessor( metaGenSourceSet )
|
|
||||||
}
|
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
manifest = osgiManifest {
|
manifest = osgiManifest {
|
||||||
|
|
|
@ -35,22 +35,18 @@ dependencies {
|
||||||
hibernateJpaModelGenTool( project( ':hibernate-jpamodelgen' ) )
|
hibernateJpaModelGenTool( project( ':hibernate-jpamodelgen' ) )
|
||||||
}
|
}
|
||||||
|
|
||||||
def pomName() {
|
public String pomName() {
|
||||||
return 'Hibernate JPA Support'
|
return 'Hibernate JPA Support'
|
||||||
}
|
}
|
||||||
|
|
||||||
def pomDescription() {
|
public String pomDescription() {
|
||||||
return 'Hibernate O/RM implementation of the JPA specification'
|
return 'Hibernate O/RM implementation of the JPA specification'
|
||||||
}
|
}
|
||||||
|
|
||||||
def osgiDescription() {
|
public String osgiDescription() {
|
||||||
return pomDescription()
|
return pomDescription()
|
||||||
}
|
}
|
||||||
|
|
||||||
def getMetaGenTargetSourceSet() {
|
|
||||||
return sourceSets.test;
|
|
||||||
}
|
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
manifest {
|
manifest {
|
||||||
// A cdi-api OSGi bundle does not currently exist. For now, explicitly
|
// A cdi-api OSGi bundle does not currently exist. For now, explicitly
|
||||||
|
@ -74,6 +70,8 @@ jar {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
addMetaGenProcessor( sourceSets.test )
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Process 'bundle resources' for the packaging tests
|
// Process 'bundle resources' for the packaging tests
|
||||||
|
|
|
@ -33,10 +33,6 @@ def osgiDescription() {
|
||||||
return pomDescription()
|
return pomDescription()
|
||||||
}
|
}
|
||||||
|
|
||||||
def getMetaGenTargetSourceSet() {
|
|
||||||
return sourceSets.main;
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
test {
|
test {
|
||||||
ext {
|
ext {
|
||||||
|
@ -52,6 +48,7 @@ sourceSets {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
addMetaGenProcessor( sourceSets.main )
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
manifest {
|
manifest {
|
||||||
|
|
|
@ -73,10 +73,6 @@ def osgiDescription() {
|
||||||
return pomDescription()
|
return pomDescription()
|
||||||
}
|
}
|
||||||
|
|
||||||
def boolean needsLoggingGeneration() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
manifest {
|
manifest {
|
||||||
instruction 'Bundle-Activator', 'org.hibernate.osgi.HibernateBundleActivator'
|
instruction 'Bundle-Activator', 'org.hibernate.osgi.HibernateBundleActivator'
|
||||||
|
|
|
@ -26,7 +26,3 @@ def pomDescription() {
|
||||||
def osgiDescription() {
|
def osgiDescription() {
|
||||||
return pomDescription()
|
return pomDescription()
|
||||||
}
|
}
|
||||||
|
|
||||||
def boolean needsLoggingGeneration() {
|
|
||||||
return false;
|
|
||||||
}
|
|
|
@ -165,9 +165,9 @@ class SourceGenerationPluginConvention {
|
||||||
|
|
||||||
|
|
||||||
// create a FileTree representation of the APT output dir and add it to the JavaCompile task (so they get compiled)
|
// create a FileTree representation of the APT output dir and add it to the JavaCompile task (so they get compiled)
|
||||||
final ConfigurableFileTree outputDirFileTree = project.fileTree( outputDir );
|
// final ConfigurableFileTree outputDirFileTree = project.fileTree( outputDir );
|
||||||
outputDirFileTree.builtBy( aptTask );
|
// outputDirFileTree.builtBy( aptTask );
|
||||||
javaCompileTask.getSource().plus( outputDirFileTree );
|
// javaCompileTask.getSource().plus( outputDirFileTree );
|
||||||
|
|
||||||
// Add the APT output dir to the source set
|
// Add the APT output dir to the source set
|
||||||
sourceSet.getJava().srcDir( outputDir );
|
sourceSet.getJava().srcDir( outputDir );
|
||||||
|
|
|
@ -9,7 +9,3 @@ dependencies {
|
||||||
compile gradleApi()
|
compile gradleApi()
|
||||||
compile localGroovy()
|
compile localGroovy()
|
||||||
}
|
}
|
||||||
|
|
||||||
def boolean needsLoggingGeneration() {
|
|
||||||
return false;
|
|
||||||
}
|
|
|
@ -12,7 +12,3 @@ dependencies {
|
||||||
compile( libraries.jpa )
|
compile( libraries.jpa )
|
||||||
compile( libraries.javassist )
|
compile( libraries.javassist )
|
||||||
}
|
}
|
||||||
|
|
||||||
def boolean needsLoggingGeneration() {
|
|
||||||
return false;
|
|
||||||
}
|
|
|
@ -68,7 +68,3 @@ runSourceGenerators.dependsOn jaxb
|
||||||
|
|
||||||
checkstyleMain.exclude '**/jaxb/**'
|
checkstyleMain.exclude '**/jaxb/**'
|
||||||
|
|
||||||
|
|
||||||
def boolean needsLoggingGeneration() {
|
|
||||||
return false;
|
|
||||||
}
|
|
Loading…
Reference in New Issue