diff --git a/build.gradle b/build.gradle index 27dfbb9da0..3690ac49ff 100644 --- a/build.gradle +++ b/build.gradle @@ -21,7 +21,7 @@ buildscript { plugins { id 'me.champeau.buildscan-recipes' version '0.2.3' - id 'io.github.gradle-nexus.publish-plugin' version '1.0.0' + id 'io.github.gradle-nexus.publish-plugin' version '1.1.0' id 'nu.studer.credentials' version '2.1' id 'org.hibernate.build.xjc' version '2.0.1' apply false id 'org.hibernate.build.maven-repo-auth' version '3.0.3' apply false diff --git a/gradle/publishing-repos.gradle b/gradle/publishing-repos.gradle index 77b3bfdc39..b417e1eba3 100644 --- a/gradle/publishing-repos.gradle +++ b/gradle/publishing-repos.gradle @@ -6,7 +6,9 @@ */ apply plugin: 'maven-publish' -apply plugin: 'org.hibernate.build.maven-repo-auth' +if ( rootProject.ormVersion.isSnapshot ) { + apply plugin: 'org.hibernate.build.maven-repo-auth' +} publishing { publications { diff --git a/hibernate-infinispan/hibernate-infinispan.gradle b/hibernate-infinispan/hibernate-infinispan.gradle index d7784beed0..24393e7568 100644 --- a/hibernate-infinispan/hibernate-infinispan.gradle +++ b/hibernate-infinispan/hibernate-infinispan.gradle @@ -10,7 +10,7 @@ description = '(deprecated - use org.infinispan:infinispan-hibernate-cache-v53 i apply from: rootProject.file( 'gradle/publishing-repos.gradle' ) apply from: rootProject.file( 'gradle/publishing-pom.gradle' ) apply plugin: 'maven-publish' -apply plugin: 'org.hibernate.build.maven-repo-auth' +//apply plugin: 'org.hibernate.build.maven-repo-auth' ext { relocatedGroupId = 'org.infinispan'