Fix issue with generated pom missing project description

This commit is contained in:
Andrea Boriero 2020-04-06 18:21:11 +01:00
parent 016f8ed285
commit b897a36f2f
22 changed files with 57 additions and 47 deletions

View File

@ -42,10 +42,8 @@ ext {
sourceCompatibility = project.baselineJavaVersion
targetCompatibility = project.baselineJavaVersion
afterEvaluate {
if ( !project.description ) {
project.description = "The Hibernate ORM $project.name module"
}
if ( !project.description ) {
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>.
*/
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
description = 'Integration for Agroal as a ConnectionProvider for Hibernate ORM'
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
dependencies {
compile project( ':hibernate-core' )
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>.
*/
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
description = 'Integration for c3p0 Connection pooling into Hibernate ORM'
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
dependencies {
compile project( ':hibernate-core' )
compile( libraries.c3p0 )

View File

@ -6,13 +6,13 @@
*/
import org.apache.tools.ant.filters.ReplaceTokens
description = 'Hibernate\'s core ORM functionality'
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
apply plugin: 'antlr'
apply plugin: 'hibernate-matrix-testing'
apply plugin: 'org.hibernate.build.gradle.xjc'
description = 'Hibernate\'s core ORM functionality'
ext {
jaxbTargetDir = file( "${buildDir}/generated-src/jaxb/main" )
}

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>.
*/
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
description = "Integration for using Ehcache 2.x as a Hibernate second-level-cache provider"
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
dependencies {
compile project( ':hibernate-core' )
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' )
description = '(deprecated - use hibernate-core instead) Hibernate O/RM implementation of the JPA specification'
dependencies {
compile( project( ':hibernate-core' ) )
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>.
*/
description = 'Hibernate\'s entity version (audit/history) support'
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
apply plugin: 'hibernate-matrix-testing'
description = 'Hibernate\'s entity version (audit/history) support'
dependencies {
compile( project( ':hibernate-core' ) ) {
// 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>.
*/
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
description = "Experimental extension to make it easier to compile applications into a GraalVM native image"
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
dependencies {
//No need for transitive dependencies: this is all just metadata to be used as companion jar.
compileOnly project( ':hibernate-core' )

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>.
*/
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
description = 'Integration for HikariCP into Hibernate O/RM'
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
dependencies {
compile project( ':hibernate-core' )
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>.
*/
description = '(deprecated - use org.infinispan:infinispan-hibernate-cache-v53 instead)'
apply from: rootProject.file( 'gradle/base-information.gradle' )
apply from: rootProject.file( 'gradle/publishing-repos.gradle' )
apply from: rootProject.file( 'gradle/publishing-pom.gradle' )
apply plugin: 'maven-publish'
apply plugin: 'org.hibernate.build.maven-repo-auth'
description = '(deprecated - use org.infinispan:infinispan-hibernate-cache-v53 instead)'
ext {
relocatedGroupId = 'org.infinispan'
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' )
description = '(deprecated - use hibernate-core instead) Support for Java8-specific features - mainly Java8 Date/Time (JSR 310)'
dependencies {
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' )
description = 'Integration for javax.cache into Hibernate as a second-level caching service'
dependencies {
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>.
*/
description = 'Integrate with WildFly JipiJapa'
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
description = 'Integrate with WildFly JipiJapa'
dependencies {
compile project( ':hibernate-core' )

View File

@ -10,10 +10,25 @@ plugins {
id "org.wildfly.build.featurepack" version '0.0.11'
}
apply from: rootProject.file( 'gradle/base-information.gradle' )
apply plugin: 'java'
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: 'org.hibernate.build.maven-repo-auth'
apply from: rootProject.file( 'gradle/publishing-repos.gradle' )
@ -28,19 +43,6 @@ project.tasks.javadoc.enabled = false
evaluationDependsOn( ':hibernate-core' )
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 {
featurePack {
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>.
*/
description = 'Support for running Hibernate O/RM in OSGi environments'
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
apply plugin: 'com.github.lburgazzoli.karaf'
description = 'Support for running Hibernate O/RM in OSGi environments'
ext {
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>.
*/
description = 'Integration for Proxool Connection pooling into Hibernate O/RM'
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
description = 'Integration for Proxool Connection pooling into Hibernate O/RM'
dependencies {
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>.
*/
description = 'Integrate support for Spatial/GIS data into Hibernate O/RM'
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
apply plugin: 'hibernate-matrix-testing'
description = 'Integrate support for Spatial/GIS data into Hibernate O/RM'
dependencies {
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>.
*/
description = 'Support for testing Hibernate ORM functionality'
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
description = 'Support for testing Hibernate ORM functionality'
dependencies {
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>.
*/
description = 'Integration for Vibur Connection pooling as a Hibernate ORM ConnectionProvider'
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
description = 'Integration for Vibur Connection pooling as a Hibernate ORM ConnectionProvider'
dependencies {
compile project( ':hibernate-core' )

View File

@ -4,13 +4,14 @@
* 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>.
*/
description = 'Enhance Plugin of the Hibernate project for use with Maven build system.'
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
apply plugin: 'maven'
import org.apache.tools.ant.filters.ReplaceTokens
import org.apache.tools.ant.filters.ReplaceTokens
group = 'org.hibernate.orm.tooling'
description = 'Enhance Plugin of the Hibernate project for use with Maven build system.'
processResources {
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>.
*/
apply plugin: 'groovy'
description = "Gradle plugin for integrating Hibernate functionality into your build"
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
apply plugin: 'java-gradle-plugin'
apply plugin: 'maven'
description = "Gradle plugin for integrating Hibernate functionality into your build"
dependencies {
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>.
*/
description = 'Annotation Processor to generate JPA 2 static metamodel classes'
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
apply plugin: 'version-injection'
apply plugin: 'org.hibernate.build.gradle.xjc'
description = 'Annotation Processor to generate JPA 2 static metamodel classes'
ext {
xjcTargetDir = file( "${buildDir}/generated-src/xjc/main" )