From 898353640e895da53fd5f89ca90cdcf1206e12c2 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Mon, 24 Dec 2018 08:23:56 -0500 Subject: [PATCH] Moving to new Jenkins setup --- api/build.gradle | 2 +- build.gradle | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/api/build.gradle b/api/build.gradle index 86bb9b32f..18110ccdc 100644 --- a/api/build.gradle +++ b/api/build.gradle @@ -80,7 +80,7 @@ publishing { repositories { maven { name = 'myRepo' - def base = project.ext.getCurrentBranchName() == "master" ? 'file:///maven-repo' : File.createTempDir().toURI().toURL().toString() + def base = 'file:///maven-repo' def releasesRepoUrl = "$base/releases" def snapshotsRepoUrl = "$base/snapshots" url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl diff --git a/build.gradle b/build.gradle index 6a86013d9..de94d0a6f 100644 --- a/build.gradle +++ b/build.gradle @@ -18,17 +18,6 @@ allprojects { guavaVersion = '25.1-jre' checkerFrameworkVersion = '2.5.6' - getCurrentBranchName = { - new ByteArrayOutputStream().withStream { os -> - exec { - executable = "git" - args = ["rev-parse", "--abbrev-ref", "HEAD"] - standardOutput = os - } - return os.toString().trim() - } - } - getCurrentShortRevision = { new ByteArrayOutputStream().withStream { os -> exec {