Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-26

Apache Geode 'build.gradle' inappropriately declares mavenLocal() in Repository declarations.

    XMLWordPrintableJSON

    Details

    • Sprint:
      1.0.0-incubating.M3

      Description

      In the build.gradle file of the Apache Geode project, the repositories declaration inappropriately contains mavenLocal().

      The problem with this is, if developers contributing patches to the Apache Geode codebase inadvertently include a "local" dependency to the dependencies defined in Geode's build.gradle file(s), then Geode will build locally but not when the patch is submitted and Geode's build infrastructure runs the same build with the code changes dependent on the (possibly) non-existent, non-resolvable dependency, because, it only exists in the developers "local" Maven (env) repository (~/.m2/repository).

      There are other preferred ways in which users can specify the use of mavenLocal() to affect their work Apache Geode codebase/build without modifying the actual Apache Geode build.gradle file.

      For instance, a developer can created a ~/.gradle/init.gradle script to tweak "available" Repositories, like so...

      allprojects {
        repositories {
          mavenLocal()
          maven { url "http://maven.domain.com/path/to/another/maven/repo"}
         // etc...
        }
      }
      

      See the Gradle documentation on init.scripts for more details.

        Attachments

          Activity

            People

            • Assignee:
              abaker Anthony Baker
              Reporter:
              jblum John Blum
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: