2018-01-10 15:06:58 -06:00
|
|
|
/*
|
|
|
|
* Hibernate, Relational Persistence for Idiomatic Java
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
|
|
|
apply from: rootProject.file( 'gradle/java-module.gradle' )
|
2018-06-13 10:45:41 +01:00
|
|
|
apply from: rootProject.file( 'gradle/publishing-pom.gradle' )
|
2018-01-22 11:28:24 -06:00
|
|
|
|
2021-06-28 15:59:35 -05:00
|
|
|
configurations {
|
|
|
|
javadocSources {
|
|
|
|
description 'Used to aggregate javadocs for the whole project'
|
|
|
|
}
|
|
|
|
}
|
2018-01-22 11:28:24 -06:00
|
|
|
|
2021-06-28 15:59:35 -05:00
|
|
|
dependencies {
|
|
|
|
javadocSources sourceSets.main.allJava
|
|
|
|
}
|
2018-01-10 16:52:28 -06:00
|
|
|
|
|
|
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
// Publishing
|
|
|
|
|
2021-05-14 14:59:59 -05:00
|
|
|
java {
|
|
|
|
withJavadocJar()
|
|
|
|
withSourcesJar()
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-01-10 15:06:58 -06:00
|
|
|
publishing {
|
|
|
|
publications {
|
2018-02-01 14:00:37 -06:00
|
|
|
publishedArtifacts {
|
2018-01-10 15:06:58 -06:00
|
|
|
from components.java
|
|
|
|
}
|
2019-05-21 16:29:57 -05:00
|
|
|
|
2021-10-13 10:24:56 +02:00
|
|
|
relocationPom( MavenPublication ) {
|
2019-05-21 16:29:57 -05:00
|
|
|
pom {
|
|
|
|
name = project.name + ' - relocation'
|
|
|
|
groupId = 'org.hibernate'
|
|
|
|
artifactId = project.name
|
|
|
|
version = project.version
|
|
|
|
|
|
|
|
description = project.description
|
2021-06-07 12:47:53 +02:00
|
|
|
url = 'https://hibernate.org/orm'
|
2019-05-21 16:29:57 -05:00
|
|
|
|
|
|
|
organization {
|
|
|
|
name = 'Hibernate.org'
|
2021-06-07 12:47:53 +02:00
|
|
|
url = 'https://hibernate.org'
|
2019-05-21 16:29:57 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
licenses {
|
|
|
|
license {
|
|
|
|
name = 'GNU Library General Public License v2.1 or later'
|
2021-06-07 12:47:53 +02:00
|
|
|
url = 'https://www.opensource.org/licenses/LGPL-2.1'
|
|
|
|
comments = 'See discussion at https://hibernate.org/community/license/ for more details.'
|
2019-05-21 16:29:57 -05:00
|
|
|
distribution = 'repo'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
scm {
|
2021-06-07 12:47:53 +02:00
|
|
|
url = 'https://github.com/hibernate/hibernate-orm'
|
|
|
|
connection = 'scm:git:https://github.com/hibernate/hibernate-orm.git'
|
2019-05-21 16:29:57 -05:00
|
|
|
developerConnection = 'scm:git:git@github.com:hibernate/hibernate-orm.git'
|
|
|
|
}
|
|
|
|
|
|
|
|
developers {
|
|
|
|
developer {
|
|
|
|
id = 'hibernate-team'
|
|
|
|
name = 'The Hibernate Development Team'
|
|
|
|
organization = 'Hibernate.org'
|
2021-06-07 12:47:53 +02:00
|
|
|
organizationUrl = 'https://hibernate.org'
|
2019-05-21 16:29:57 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
issueManagement {
|
|
|
|
system = 'jira'
|
|
|
|
url = 'https://hibernate.atlassian.net/browse/HHH'
|
|
|
|
}
|
|
|
|
|
|
|
|
distributionManagement {
|
|
|
|
relocation {
|
|
|
|
groupId = 'org.hibernate.orm'
|
|
|
|
artifactId = project.name
|
|
|
|
version = project.version
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-14 14:59:59 -05:00
|
|
|
|
2021-05-18 16:03:34 -05:00
|
|
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
// Relocation for the published artifacts based on the old groupId
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-05-14 14:59:59 -05:00
|
|
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
// Release / publishing tasks
|
|
|
|
|
2018-02-15 12:06:01 -06:00
|
|
|
task ciBuild( dependsOn: [test, publish] )
|
2018-02-01 13:19:08 -06:00
|
|
|
|
2021-05-14 14:59:59 -05:00
|
|
|
task release(dependsOn: [test, publishToSonatype])
|
|
|
|
publishToSonatype.mustRunAfter test
|
2018-02-01 13:19:08 -06:00
|
|
|
|
2021-10-11 14:53:10 -05:00
|
|
|
|
|
|
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
// Ancillary tasks
|
|
|
|
|
|
|
|
task showPublications {
|
|
|
|
doFirst {
|
|
|
|
project.publishing.publications.each { publication ->
|
|
|
|
println "Publication (${publication.name}): ${publication.groupId}:${publication.artifactId}:${publication.version}"
|
|
|
|
publication.artifacts.each { artifact ->
|
|
|
|
println " > ${artifact}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|