Skip to content

Commit 21c9851

Browse files
authored
Build: Fix repos.mavenLocal casing (#29289)
The sysprop repos.mavenLocal may be used to add the local .m2 maven repository for testing snapshots of locally build dependencies. Unfortunately this has to be checked in two different places (they cannot be shared, due to buildSrc being built essentially as a separate project), and the casing of the string sysprop lookups did not align. This commit fixes BuildPlugin's checking of repos.mavenLocal to use the correct casing (camelCase, to match the gradle dsl element).
1 parent 9bc1674 commit 21c9851

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,8 @@ class BuildPlugin implements Plugin<Project> {
311311
/** Adds repositories used by ES dependencies */
312312
static void configureRepositories(Project project) {
313313
RepositoryHandler repos = project.repositories
314-
if (System.getProperty("repos.mavenlocal") != null) {
315-
// with -Drepos.mavenlocal=true we can force checking the local .m2 repo which is
314+
if (System.getProperty("repos.mavenLocal") != null) {
315+
// with -Drepos.mavenLocal=true we can force checking the local .m2 repo which is
316316
// useful for development ie. bwc tests where we install stuff in the local repository
317317
// such that we don't have to pass hardcoded files to gradle
318318
repos.mavenLocal()

0 commit comments

Comments
 (0)