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 plugin: 'maven-publish'
|
2021-04-29 14:17:45 -04:00
|
|
|
if ( rootProject.ormVersion.isSnapshot ) {
|
|
|
|
apply plugin: 'org.hibernate.build.maven-repo-auth'
|
|
|
|
}
|
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
|
|
|
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' )
|