HHH-14640 : Fix issue with generated pom missing project description

This commit is contained in:
Andrea Boriero 2020-04-06 18:21:11 +01:00 committed by gbadner
parent c36e2cc543
commit 40d82d6370
21 changed files with 105 additions and 64 deletions

View File

@ -42,10 +42,8 @@ ext {
sourceCompatibility = project.baselineJavaVersion sourceCompatibility = project.baselineJavaVersion
targetCompatibility = project.baselineJavaVersion targetCompatibility = project.baselineJavaVersion
afterEvaluate { if ( !project.description ) {
if ( !project.description ) { project.description = "The Hibernate ORM $project.name module"
project.description = "The Hibernate ORM $project.name module"
}
} }

View File

@ -5,10 +5,10 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/ */
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
description = 'Integration for Agroal as a ConnectionProvider for Hibernate ORM' description = 'Integration for Agroal as a ConnectionProvider for Hibernate ORM'
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
dependencies { dependencies {
compile project( ':hibernate-core' ) compile project( ':hibernate-core' )
compile( libraries.agroal_api ) compile( libraries.agroal_api )

View File

@ -5,10 +5,10 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/ */
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
description = 'Integration for c3p0 Connection pooling into Hibernate ORM' description = 'Integration for c3p0 Connection pooling into Hibernate ORM'
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
dependencies { dependencies {
compile project( ':hibernate-core' ) compile project( ':hibernate-core' )
compile( libraries.c3p0 ) compile( libraries.c3p0 )

View File

@ -6,26 +6,52 @@
*/ */
import org.apache.tools.ant.filters.ReplaceTokens import org.apache.tools.ant.filters.ReplaceTokens
description = 'Hibernate\'s core ORM functionality'
apply from: rootProject.file( 'gradle/published-java-module.gradle' ) apply from: rootProject.file( 'gradle/published-java-module.gradle' )
apply plugin: 'antlr' apply plugin: 'antlr'
apply plugin: 'hibernate-matrix-testing' apply plugin: 'hibernate-matrix-testing'
apply plugin: 'org.hibernate.build.gradle.xjc' apply plugin: 'org.hibernate.build.gradle.xjc'
description = 'Hibernate\'s core ORM functionality' ext {
jaxbTargetDir = file( "${buildDir}/generated-src/jaxb/main" )
}
sourceSets.main {
java.srcDir project.jaxbTargetDir
}
sourceSets {
// resources inherently exclude sources
test {
resources {
setSrcDirs( ['src/test/java','src/test/resources'] )
}
}
testJavassist {
java {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
}
}
}
configurations { configurations {
hibernateJpaModelGenTool {
description = "Dependencies for running the Hibernate JPA Metamodel Generator AnnotationProcessor tool"
}
tests { tests {
description = 'Configuration for the produced test jar' description = 'Configuration for the produced test jar'
} }
//Configures the compile and runtime configurations for our javassist tests
//and includes the dependencies of the test task.
testJavassistCompile.extendsFrom testCompile
testJavassistRuntime.extendsFrom testRuntime
} }
dependencies { dependencies {
compile( libraries.jpa ) compile( libraries.jpa )
// Javassist is no longer the default enhancer but still required for other purposes, e.g. Scanning // This can now be made provided
compile( libraries.javassist ) compile( libraries.javassist )
// Could be made optional? // Could be made optional?
compile( libraries.byteBuddy ) compile( libraries.byteBuddy )
@ -67,6 +93,7 @@ dependencies {
testCompile( libraries.mockito ) testCompile( libraries.mockito )
testCompile( libraries.mockito_inline ) testCompile( libraries.mockito_inline )
testCompile( libraries.jodaTime ) testCompile( libraries.jodaTime )
testCompile( libraries.assertj )
testCompile( libraries.cdi ) { testCompile( libraries.cdi ) {
// we need to force it to make sure we influence the one coming from arquillian // we need to force it to make sure we influence the one coming from arquillian
@ -87,9 +114,11 @@ dependencies {
testRuntime( libraries.javassist ) testRuntime( libraries.javassist )
testRuntime( libraries.byteBuddy ) testRuntime( libraries.byteBuddy )
testRuntime( libraries.weld ) testRuntime( libraries.weld )
testRuntime( libraries.atomikos )
testRuntime( libraries.atomikos_jta )
testRuntime(libraries.wildfly_transaction_client) testRuntime(libraries.wildfly_transaction_client)
testCompile( project( ':hibernate-jpamodelgen' ) ) testAnnotationProcessor( project( ':hibernate-jpamodelgen' ) )
testCompile libraries.arquillian_junit_container testCompile libraries.arquillian_junit_container
testCompile libraries.arquillian_protocol_servlet testCompile libraries.arquillian_protocol_servlet
@ -99,6 +128,10 @@ dependencies {
testCompile libraries.jboss_ejb_spec_jar testCompile libraries.jboss_ejb_spec_jar
testCompile libraries.jboss_annotation_spec_jar testCompile libraries.jboss_annotation_spec_jar
// Additional tests requiring Javassist
// folder in src/javassist/java
testJavassistCompile libraries.javassist
} }
jar { jar {
@ -154,19 +187,6 @@ jar {
} }
} }
ext {
jaxbTargetDir = file( "${buildDir}/generated-src/jaxb/main" )
}
sourceSets.main {
java.srcDir project.jaxbTargetDir
}
// resources inherently exclude sources
sourceSets.test.resources {
setSrcDirs( ['src/test/java','src/test/resources'] )
}
//idea { //idea {
// module { // module {
// sourceDirs += file( "${buildDir}/generated-src/antlr/main" ) // sourceDirs += file( "${buildDir}/generated-src/antlr/main" )
@ -238,9 +258,20 @@ test.dependsOn ':hibernate-orm-modules:prepareWildFlyForTests'
test { test {
systemProperty 'file.encoding', 'utf-8' systemProperty 'file.encoding', 'utf-8'
//Set the port-offset to match the offset in arquillian.xml
systemProperty 'jboss.socket.binding.port-offset', '137'
beforeTest { descriptor -> beforeTest { descriptor ->
//println "Starting test: " + descriptor //println "Starting test: " + descriptor
} }
} }
//Create the task that runs the integration tests found from the
//configured source directory and uses the correct classpath.
task testJavassist(type: Test) {
testClassesDirs = sourceSets.testJavassist.output.classesDirs
classpath = sourceSets.testJavassist.runtimeClasspath
//If you want to ensure that integration tests are run every time when you invoke
//this task, uncomment the following line.
//outputs.upToDateWhen { false }
}
check.dependsOn testJavassist
testJavassist.mustRunAfter test

View File

@ -5,10 +5,10 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/ */
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
description = "Integration for using Ehcache 2.x as a Hibernate second-level-cache provider" description = "Integration for using Ehcache 2.x as a Hibernate second-level-cache provider"
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
dependencies { dependencies {
compile project( ':hibernate-core' ) compile project( ':hibernate-core' )
compile( libraries.ehcache ) compile( libraries.ehcache )

View File

@ -1,8 +1,7 @@
description = '(deprecated - use hibernate-core instead) Hibernate O/RM implementation of the JPA specification'
apply from: rootProject.file( 'gradle/published-java-module.gradle' ) apply from: rootProject.file( 'gradle/published-java-module.gradle' )
description = '(deprecated - use hibernate-core instead) Hibernate O/RM implementation of the JPA specification'
dependencies { dependencies {
compile( project( ':hibernate-core' ) ) compile( project( ':hibernate-core' ) )
compile( libraries.dom4j ) compile( libraries.dom4j )

View File

@ -5,11 +5,11 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/ */
description = 'Hibernate\'s entity version (audit/history) support'
apply from: rootProject.file( 'gradle/published-java-module.gradle' ) apply from: rootProject.file( 'gradle/published-java-module.gradle' )
apply plugin: 'hibernate-matrix-testing' apply plugin: 'hibernate-matrix-testing'
description = 'Hibernate\'s entity version (audit/history) support'
dependencies { dependencies {
compile( project( ':hibernate-core' ) ) { compile( project( ':hibernate-core' ) ) {
// Exclude access to this to avoid future use. // Exclude access to this to avoid future use.

View File

@ -5,10 +5,10 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/ */
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
description = 'Integration for HikariCP into Hibernate O/RM' description = 'Integration for HikariCP into Hibernate O/RM'
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
dependencies { dependencies {
compile project( ':hibernate-core' ) compile project( ':hibernate-core' )
compile( libraries.hikaricp ) compile( libraries.hikaricp )

View File

@ -5,14 +5,14 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/ */
description = '(deprecated - use org.infinispan:infinispan-hibernate-cache-v53 instead)'
apply from: rootProject.file( 'gradle/base-information.gradle' ) apply from: rootProject.file( 'gradle/base-information.gradle' )
apply from: rootProject.file( 'gradle/publishing-repos.gradle' ) apply from: rootProject.file( 'gradle/publishing-repos.gradle' )
apply from: rootProject.file( 'gradle/publishing-pom.gradle' ) apply from: rootProject.file( 'gradle/publishing-pom.gradle' )
apply plugin: 'maven-publish' apply plugin: 'maven-publish'
apply plugin: 'org.hibernate.build.maven-repo-auth' apply plugin: 'org.hibernate.build.maven-repo-auth'
description = '(deprecated - use org.infinispan:infinispan-hibernate-cache-v53 instead)'
ext { ext {
relocatedGroupId = 'org.infinispan' relocatedGroupId = 'org.infinispan'
relocatedArtifactId = 'infinispan-hibernate-cache-v53' relocatedArtifactId = 'infinispan-hibernate-cache-v53'

View File

@ -1,7 +1,7 @@
description = '(deprecated - use hibernate-core instead) Support for Java8-specific features - mainly Java8 Date/Time (JSR 310)'
apply from: rootProject.file( 'gradle/published-java-module.gradle' ) apply from: rootProject.file( 'gradle/published-java-module.gradle' )
description = '(deprecated - use hibernate-core instead) Support for Java8-specific features - mainly Java8 Date/Time (JSR 310)'
dependencies { dependencies {
compile( project( ':hibernate-core' ) ) compile( project( ':hibernate-core' ) )

View File

@ -1,6 +1,7 @@
description = 'Integration for javax.cache into Hibernate as a second-level caching service'
apply from: rootProject.file( 'gradle/published-java-module.gradle' ) apply from: rootProject.file( 'gradle/published-java-module.gradle' )
description = 'Integration for javax.cache into Hibernate as a second-level caching service'
dependencies { dependencies {
compile project( ':hibernate-core' ) compile project( ':hibernate-core' )

View File

@ -5,9 +5,10 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/ */
description = 'Integrate with WildFly JipiJapa'
apply from: rootProject.file( 'gradle/published-java-module.gradle' ) apply from: rootProject.file( 'gradle/published-java-module.gradle' )
description = 'Integrate with WildFly JipiJapa'
dependencies { dependencies {
compile project( ':hibernate-core' ) compile project( ':hibernate-core' )

View File

@ -10,10 +10,25 @@ plugins {
id "org.wildfly.build.featurepack" version '0.0.9' id "org.wildfly.build.featurepack" version '0.0.9'
} }
apply from: rootProject.file( 'gradle/base-information.gradle' ) apply from: rootProject.file( 'gradle/base-information.gradle' )
apply plugin: 'java' apply plugin: 'java'
apply from: rootProject.file( 'gradle/libraries.gradle' ) apply from: rootProject.file( 'gradle/libraries.gradle' )
ext {
// NOTE : `wildflyVersion` comes from libraries.gradle...
// "10" for WildFly 10.x, "11" for 11.x, etc
wildFlyMajorVersion = project.wildflyVersion.split( '\\.' )[0]
bytebuddyVersion = project.byteBuddyVersion
artifactClassifier = "wildfly-${wildFlyMajorVersion}-dist"
wildFlyInstallDir = "$rootProject.buildDir/wildfly"
fpackStagingDir = file( "target/featurepack" ) //Target build directory for the Feature Pack
}
description = "Feature Pack of Hibernate ORM modules for WildFly ${project.wildFlyMajorVersion}"
apply plugin: 'maven-publish' apply plugin: 'maven-publish'
apply plugin: 'org.hibernate.build.maven-repo-auth' apply plugin: 'org.hibernate.build.maven-repo-auth'
apply from: rootProject.file( 'gradle/publishing-repos.gradle' ) apply from: rootProject.file( 'gradle/publishing-repos.gradle' )
@ -28,19 +43,6 @@ project.tasks.javadoc.enabled = false
evaluationDependsOn( ':hibernate-core' ) evaluationDependsOn( ':hibernate-core' )
evaluationDependsOn( ':hibernate-envers' ) evaluationDependsOn( ':hibernate-envers' )
ext {
// NOTE : `wildflyVersion` comes from libraries.gradle...
// "10" for WildFly 10.x, "11" for 11.x, etc
wildFlyMajorVersion = project.wildflyVersion.split( '\\.' )[0]
bytebuddyVersion = project.byteBuddyVersion
artifactClassifier = "wildfly-${wildFlyMajorVersion}-dist"
wildFlyInstallDir = "$rootProject.buildDir/wildfly"
fpackStagingDir = file( "target/featurepack" ) //Target build directory for the Feature Pack
}
description = "Feature Pack of Hibernate ORM modules for WildFly ${project.wildFlyMajorVersion}"
configurations { configurations {
featurePack { featurePack {
description = "Dependencies to be included in the published Feature Pack" description = "Dependencies to be included in the published Feature Pack"

View File

@ -5,10 +5,11 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/ */
description = 'Support for running Hibernate O/RM in OSGi environments'
apply from: rootProject.file( 'gradle/published-java-module.gradle' ) apply from: rootProject.file( 'gradle/published-java-module.gradle' )
apply plugin: 'com.github.lburgazzoli.karaf' apply plugin: 'com.github.lburgazzoli.karaf'
description = 'Support for running Hibernate O/RM in OSGi environments'
ext { ext {
osgiCoreVersion = '6.0.0' osgiCoreVersion = '6.0.0'

View File

@ -5,9 +5,10 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/ */
description = 'Integration for Proxool Connection pooling into Hibernate O/RM'
apply from: rootProject.file( 'gradle/published-java-module.gradle' ) apply from: rootProject.file( 'gradle/published-java-module.gradle' )
description = 'Integration for Proxool Connection pooling into Hibernate O/RM'
dependencies { dependencies {
compile project( ':hibernate-core' ) compile project( ':hibernate-core' )

View File

@ -7,10 +7,11 @@ import org.apache.tools.ant.filters.ReplaceTokens
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/ */
description = 'Integrate support for Spatial/GIS data into Hibernate O/RM'
apply from: rootProject.file( 'gradle/published-java-module.gradle' ) apply from: rootProject.file( 'gradle/published-java-module.gradle' )
apply plugin: 'hibernate-matrix-testing' apply plugin: 'hibernate-matrix-testing'
description = 'Integrate support for Spatial/GIS data into Hibernate O/RM'
dependencies { dependencies {
compile( project(':hibernate-core') ) compile( project(':hibernate-core') )

View File

@ -5,9 +5,10 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/ */
description = 'Support for testing Hibernate ORM functionality'
apply from: rootProject.file( 'gradle/published-java-module.gradle' ) apply from: rootProject.file( 'gradle/published-java-module.gradle' )
description = 'Support for testing Hibernate ORM functionality'
dependencies { dependencies {
compile project( ':hibernate-core' ) compile project( ':hibernate-core' )

View File

@ -5,9 +5,10 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/ */
description = 'Integration for Vibur Connection pooling as a Hibernate ORM ConnectionProvider'
apply from: rootProject.file( 'gradle/published-java-module.gradle' ) apply from: rootProject.file( 'gradle/published-java-module.gradle' )
description = 'Integration for Vibur Connection pooling as a Hibernate ORM ConnectionProvider'
dependencies { dependencies {
compile project( ':hibernate-core' ) compile project( ':hibernate-core' )

View File

@ -4,13 +4,14 @@
* License: GNU Lesser General Public License (LGPL), version 2.1 or later. * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/ */
description = 'Enhance Plugin of the Hibernate project for use with Maven build system.'
apply from: rootProject.file( 'gradle/published-java-module.gradle' ) apply from: rootProject.file( 'gradle/published-java-module.gradle' )
apply plugin: 'maven' apply plugin: 'maven'
import org.apache.tools.ant.filters.ReplaceTokens
import org.apache.tools.ant.filters.ReplaceTokens
group = 'org.hibernate.orm.tooling' group = 'org.hibernate.orm.tooling'
description = 'Enhance Plugin of the Hibernate project for use with Maven build system.'
processResources { processResources {
include "**/lifecycle-mapping-metadata.xml" include "**/lifecycle-mapping-metadata.xml"

View File

@ -5,11 +5,13 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/ */
apply plugin: 'groovy' apply plugin: 'groovy'
description = "Gradle plugin for integrating Hibernate functionality into your build"
apply from: rootProject.file( 'gradle/published-java-module.gradle' ) apply from: rootProject.file( 'gradle/published-java-module.gradle' )
apply plugin: 'java-gradle-plugin' apply plugin: 'java-gradle-plugin'
apply plugin: 'maven' apply plugin: 'maven'
description = "Gradle plugin for integrating Hibernate functionality into your build"
dependencies { dependencies {
compile( project( ':hibernate-core' ) ) compile( project( ':hibernate-core' ) )

View File

@ -5,11 +5,12 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/ */
description = 'Annotation Processor to generate JPA 2 static metamodel classes'
apply from: rootProject.file( 'gradle/published-java-module.gradle' ) apply from: rootProject.file( 'gradle/published-java-module.gradle' )
apply plugin: 'version-injection' apply plugin: 'version-injection'
apply plugin: 'org.hibernate.build.gradle.xjc' apply plugin: 'org.hibernate.build.gradle.xjc'
description = 'Annotation Processor to generate JPA 2 static metamodel classes'
ext { ext {
xjcTargetDir = file( "${buildDir}/generated-src/xjc/main" ) xjcTargetDir = file( "${buildDir}/generated-src/xjc/main" )