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' )
|
|
|
|
|
|
|
|
apply plugin: 'maven-publish'
|
|
|
|
|
|
|
|
if ( project.isSnapshot ) {
|
|
|
|
// For SNAPSHOT builds all we need to define is to add the JBoss SNAPSHOT server as
|
|
|
|
// a publishing repository - NOTE that the plugin applies security over the
|
|
|
|
// JBoss SNAPSHOT repo via a local user's Maven `settings.xml`
|
|
|
|
|
|
|
|
apply plugin: 'maven-publish-auth'
|
|
|
|
|
2018-01-10 16:06:58 -05:00
|
|
|
publishing {
|
|
|
|
repositories {
|
2018-01-22 12:43:16 -05:00
|
|
|
maven {
|
|
|
|
name 'jboss-snapshots-repository'
|
|
|
|
url 'https://repository.jboss.org/nexus/content/repositories/snapshots'
|
2018-01-10 16:06:58 -05:00
|
|
|
}
|
2018-01-22 12:43:16 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
// otherwise, set up the bintray plugin for publishing the release artifacts to Bintray
|
|
|
|
|
|
|
|
apply plugin: 'com.jfrog.bintray'
|
|
|
|
|
|
|
|
ext {
|
|
|
|
bintrayUser = project.property( 'PERSONAL_BINTRAY_USER' )
|
|
|
|
bintrayKey = project.property( 'PERSONAL_BINTRAY_API_KEY' )
|
|
|
|
}
|
|
|
|
|
|
|
|
bintray {
|
|
|
|
user = project.bintrayUser
|
|
|
|
key = project.bintrayKey
|
|
|
|
|
|
|
|
repo = 'artifacts'
|
|
|
|
|
|
|
|
pkg {
|
|
|
|
userOrg = 'hibernate'
|
|
|
|
name = 'hibernate-orm'
|
|
|
|
|
|
|
|
version {
|
|
|
|
name = project.version
|
|
|
|
released = new Date()
|
|
|
|
vcsTag = project.version
|
|
|
|
gpg {
|
|
|
|
sign = true
|
2018-01-10 16:06:58 -05:00
|
|
|
}
|
2018-01-22 12:43:16 -05:00
|
|
|
attributes = [
|
|
|
|
'jpa': '2.2',
|
|
|
|
'family': project.hibernateMajorMinorVersion
|
|
|
|
]
|
2018-01-10 16:06:58 -05:00
|
|
|
}
|
|
|
|
}
|
2018-01-22 12:43:16 -05:00
|
|
|
|
|
|
|
publish = false
|
2018-01-10 16:06:58 -05:00
|
|
|
}
|
2018-01-22 12:43:16 -05:00
|
|
|
|
2018-01-10 16:06:58 -05:00
|
|
|
}
|