hibernate-orm/gradle/publishing-repos.gradle

74 lines
1.7 KiB
Groovy
Raw Normal View History

/*
* 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/base-information.gradle' )
2018-02-01 15:00:37 -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-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-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-02-01 15:00:37 -05:00
bintray {
user = project.bintrayUser
key = project.bintrayKey
2019-05-21 17:29:57 -04:00
publications = ['publishedArtifacts','relocationArtifacts']
2018-02-01 15:00:37 -05:00
pkg {
userOrg = 'hibernate'
repo = 'artifacts'
name = 'hibernate-orm'
2018-02-01 15:00:37 -05:00
publish = true
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,
'family': project.ormVersion.family
2018-02-01 15:00:37 -05:00
]
mavenCentralSync {
sync = true
}
}
2018-02-01 15:00:37 -05:00
}
}
2018-02-01 15:00:37 -05:00
model {
tasks.generatePomFileForPublishedArtifactsPublication {
destination = file( "${buildDir}/generated-pom.xml" )
}
2018-02-01 15:00:37 -05:00
}
2018-02-01 15:00:37 -05:00
task generatePomFile( dependsOn: 'generatePomFileForPublishedArtifactsPublication' )