2018-01-10 16:06:58 -05: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
|
|
|
|
*/
|
|
|
|
|
2018-01-22 12:43:16 -05:00
|
|
|
apply from: rootProject.file( 'gradle/base-information.gradle' )
|
|
|
|
|
2018-02-01 15:00:37 -05:00
|
|
|
|
2018-01-22 12:43:16 -05:00
|
|
|
apply plugin: 'maven-publish'
|
2018-02-01 15:00:37 -05:00
|
|
|
apply plugin: 'maven-publish-auth'
|
|
|
|
apply plugin: 'com.jfrog.bintray'
|
2018-01-22 12:43:16 -05:00
|
|
|
|
|
|
|
|
2018-02-01 15:00:37 -05:00
|
|
|
ext {
|
2018-02-01 15:12:40 -05:00
|
|
|
bintrayUser = project.hasProperty( 'PERSONAL_BINTRAY_USER' ) ? project.property( 'PERSONAL_BINTRAY_USER' ) : null
|
|
|
|
bintrayKey = project.hasProperty( 'PERSONAL_BINTRAY_API_KEY' ) ? project.property( 'PERSONAL_BINTRAY_API_KEY' ) : null
|
2018-02-01 15:00:37 -05:00
|
|
|
}
|
2018-01-22 12:43:16 -05:00
|
|
|
|
2018-02-01 15:00:37 -05:00
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
publishedArtifacts( MavenPublication )
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
name 'jboss-snapshots-repository'
|
|
|
|
url 'https://repository.jboss.org/nexus/content/repositories/snapshots'
|
2018-01-22 12:43:16 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-02-01 15:00:37 -05:00
|
|
|
bintray {
|
|
|
|
user = project.bintrayUser
|
|
|
|
key = project.bintrayKey
|
2018-01-22 12:43:16 -05:00
|
|
|
|
2019-05-21 17:29:57 -04:00
|
|
|
publications = ['publishedArtifacts','relocationArtifacts']
|
2018-01-22 12:43:16 -05:00
|
|
|
|
2018-02-01 15:00:37 -05:00
|
|
|
pkg {
|
|
|
|
userOrg = 'hibernate'
|
|
|
|
repo = 'artifacts'
|
|
|
|
name = 'hibernate-orm'
|
2018-01-22 12:43:16 -05:00
|
|
|
|
2018-02-01 15:00:37 -05:00
|
|
|
publish = true
|
2018-01-22 12:43:16 -05:00
|
|
|
|
2018-02-01 15:00:37 -05:00
|
|
|
version {
|
|
|
|
name = project.version
|
2019-05-21 17:29:57 -04:00
|
|
|
description ="Hibernate ORM ${project.version} release. See http://hibernate.org/orm/releases/${project.ormVersion.family}"
|
2018-02-01 15:00:37 -05:00
|
|
|
released = new Date()
|
|
|
|
vcsTag = project.version
|
|
|
|
gpg {
|
|
|
|
sign = true
|
|
|
|
}
|
|
|
|
attributes = [
|
2019-05-21 17:29:57 -04:00
|
|
|
'jpa': project.jpaVersion.name,
|
2018-04-30 11:38:09 -04:00
|
|
|
'family': project.ormVersion.family
|
2018-02-01 15:00:37 -05:00
|
|
|
]
|
|
|
|
mavenCentralSync {
|
|
|
|
sync = true
|
2018-01-10 16:06:58 -05:00
|
|
|
}
|
|
|
|
}
|
2018-02-01 15:00:37 -05:00
|
|
|
}
|
|
|
|
}
|
2018-01-22 12:43:16 -05:00
|
|
|
|
2018-02-01 15:00:37 -05:00
|
|
|
model {
|
|
|
|
tasks.generatePomFileForPublishedArtifactsPublication {
|
|
|
|
destination = file( "${buildDir}/generated-pom.xml" )
|
2018-01-10 16:06:58 -05:00
|
|
|
}
|
2018-02-01 15:00:37 -05:00
|
|
|
}
|
2018-01-22 12:43:16 -05:00
|
|
|
|
2018-02-01 15:00:37 -05:00
|
|
|
task generatePomFile( dependsOn: 'generatePomFileForPublishedArtifactsPublication' )
|