From 80ed0918f163d1b3895f80d354c95480d7bf0cfe Mon Sep 17 00:00:00 2001 From: Vladimir Orany Date: Wed, 5 May 2021 14:40:38 +0200 Subject: [PATCH] added JFrog releases --- gradle/grails.commons.gradle | 13 +++++++++++++ gradle/groovy.commons.gradle | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/gradle/grails.commons.gradle b/gradle/grails.commons.gradle index e4e4419..44a801a 100644 --- a/gradle/grails.commons.gradle +++ b/gradle/grails.commons.gradle @@ -63,6 +63,19 @@ publishing { password = System.getenv("GITHUB_TOKEN") } } + if (System.getenv('DEPLOYER_PASSWORD')) { + maven { + credentials { + username "deployer" + password System.getenv('DEPLOYER_PASSWORD') + } + if (project.version.endsWith('-SNAPSHOT')) { + url 'https://agorapulse.jfrog.io/agorapulse/plugins-snapshots-local/' + } else { + url 'https://agorapulse.jfrog.io/agorapulse/plugins-releases-local/' + } + } + } } publications { gpr(MavenPublication) { diff --git a/gradle/groovy.commons.gradle b/gradle/groovy.commons.gradle index 675f878..51bc21b 100644 --- a/gradle/groovy.commons.gradle +++ b/gradle/groovy.commons.gradle @@ -53,6 +53,19 @@ publishing { password = System.getenv("GITHUB_TOKEN") } } + if (System.getenv('DEPLOYER_PASSWORD')) { + maven { + credentials { + username "deployer" + password System.getenv('DEPLOYER_PASSWORD') + } + if (project.version.endsWith('-SNAPSHOT')) { + url 'https://agorapulse.jfrog.io/agorapulse/libs-snapshots-local/' + } else { + url 'https://agorapulse.jfrog.io/agorapulse/libs-releases-local/' + } + } + } } publications { maven(MavenPublication) {