Skip to content

Commit

Permalink
Fix issue with generated pom missing project description
Browse files Browse the repository at this point in the history
  • Loading branch information
dreab8 committed Apr 6, 2020
1 parent 016f8ed commit b897a36
Show file tree
Hide file tree
Showing 22 changed files with 57 additions and 47 deletions.
6 changes: 2 additions & 4 deletions gradle/java-module.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}


Expand Down
4 changes: 2 additions & 2 deletions hibernate-agroal/hibernate-agroal.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down
4 changes: 2 additions & 2 deletions hibernate-c3p0/hibernate-c3p0.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down
4 changes: 2 additions & 2 deletions hibernate-core/hibernate-core.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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" )
}
Expand Down
4 changes: 2 additions & 2 deletions hibernate-ehcache/hibernate-ehcache.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down
3 changes: 1 addition & 2 deletions hibernate-entitymanager/hibernate-entitymanager.gradle
Original file line number Diff line number Diff line change
@@ -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 )
Expand Down
4 changes: 2 additions & 2 deletions hibernate-envers/hibernate-envers.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions hibernate-graalvm/hibernate-graalvm.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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' )
Expand Down
4 changes: 2 additions & 2 deletions hibernate-hikaricp/hibernate-hikaricp.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down
4 changes: 2 additions & 2 deletions hibernate-infinispan/hibernate-infinispan.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion hibernate-java8/hibernate-java8.gradle
Original file line number Diff line number Diff line change
@@ -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' ) )
Expand Down
3 changes: 2 additions & 1 deletion hibernate-jcache/hibernate-jcache.gradle
Original file line number Diff line number Diff line change
@@ -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' )
Expand Down
3 changes: 2 additions & 1 deletion hibernate-jipijapa/hibernate-jipijapa.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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' )
Expand Down
28 changes: 15 additions & 13 deletions hibernate-orm-modules/hibernate-orm-modules.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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' )
Expand All @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion hibernate-osgi/hibernate-osgi.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 2 additions & 1 deletion hibernate-proxool/hibernate-proxool.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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' )
Expand Down
3 changes: 2 additions & 1 deletion hibernate-spatial/hibernate-spatial.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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') )
Expand Down
3 changes: 2 additions & 1 deletion hibernate-testing/hibernate-testing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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' )
Expand Down
3 changes: 2 additions & 1 deletion hibernate-vibur/hibernate-vibur.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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' )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) )
Expand Down
3 changes: 2 additions & 1 deletion tooling/metamodel-generator/hibernate-jpamodelgen.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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" )
Expand Down

0 comments on commit b897a36

Please sign in to comment.