hibernate-orm/gradle/publishing-repos.gradle

33 lines
797 B
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 plugin: 'maven-publish'
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-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' )