From 96f8338ba9f1070526c1d24adbce22ca922c2623 Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Thu, 29 Apr 2021 20:17:45 +0200 Subject: [PATCH] HHH-14513 Move publishing release artifacts from BinTray --- build.gradle | 2 +- gradle/publishing-repos.gradle | 4 +++- hibernate-infinispan/hibernate-infinispan.gradle | 2 +- hibernate-orm-modules/hibernate-orm-modules.gradle | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index d18584e43c..7759ef9436 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' diff --git a/hibernate-orm-modules/hibernate-orm-modules.gradle b/hibernate-orm-modules/hibernate-orm-modules.gradle index c3b4f1f813..217f68a251 100644 --- a/hibernate-orm-modules/hibernate-orm-modules.gradle +++ b/hibernate-orm-modules/hibernate-orm-modules.gradle @@ -27,7 +27,7 @@ ext { description = "Feature Pack of Hibernate ORM modules for WildFly ${project.wildFlyMajorVersion}" apply plugin: 'maven-publish' -apply plugin: 'org.hibernate.build.maven-repo-auth' +//apply plugin: 'org.hibernate.build.maven-repo-auth' apply from: rootProject.file( 'gradle/publishing-repos.gradle' ) apply from: rootProject.file( 'gradle/publishing-pom.gradle' )