hibernate-orm/gradle/publishing-repos.gradle

73 lines
1.5 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
2018-02-01 15:00:37 -05:00
publications = ['publishedArtifacts']
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
released = new Date()
vcsTag = project.version
gpg {
sign = true
}
attributes = [
'jpa': project.jpaVersion,
'family': project.hibernateMajorMinorVersion
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' )