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
This commit is contained in:
Artem Bilan
2019-12-06 14:29:44 -05:00
parent 71adc5d111
commit 54aeaff0f0

View File

@@ -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