From 6a9f85146b947fafe40230edd9471674ea37148e Mon Sep 17 00:00:00 2001 From: Dimitry Ivanov Date: Mon, 6 Aug 2018 16:27:56 +0300 Subject: [PATCH] Add check for local publishing --- build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.gradle b/build.gradle index 1e17d1e5..21394ff7 100644 --- a/build.gradle +++ b/build.gradle @@ -30,6 +30,9 @@ task wrapper(type: Wrapper) { } if (hasProperty('local')) { + if (!hasProperty('LOCAL_MAVEN_URL')) { + throw new RuntimeException('Cannot publish to local maven as no such property exists: LOCAL_MAVEN_URL') + } ext.RELEASE_REPOSITORY_URL = LOCAL_MAVEN_URL ext.SNAPSHOT_REPOSITORY_URL = LOCAL_MAVEN_URL }