From 54aeaff0f094c366fcfc8e089e84ba8909e6c36f Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Fri, 6 Dec 2019 14:29:44 -0500 Subject: [PATCH] Add `mavenLocal` project property for Gradle Related to https://github.com/checkstyle/checkstyle/issues/7322 To be able to build the project against `mavenLocal()`, add a `mavenLocal` project property which can be specified as command line arg `-PmavenLocal`, so a `mavenLocal()` is added into `repositories` conditionally --- build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.gradle b/build.gradle index a7bc644910..aa3f008d86 100644 --- a/build.gradle +++ b/build.gradle @@ -104,6 +104,9 @@ allprojects { repositories { maven { url 'https://repo.spring.io/libs-milestone' } + if (project.hasProperty('mavenLocal')) { + mavenLocal() + } if (version.endsWith('BUILD-SNAPSHOT')) { maven { url 'https://repo.spring.io/libs-snapshot' } maven { url "https://oss.jfrog.org/artifactory/libs-snapshot" } // RSocket