You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Anthony Baker (JIRA)" <ji...@apache.org> on 2016/02/12 05:04:18 UTC

[jira] [Resolved] (GEODE-26) Apache Geode 'build.gradle' inappropriately declares mavenLocal() in Repository declarations.

     [ https://issues.apache.org/jira/browse/GEODE-26?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anthony Baker resolved GEODE-26.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 1.0.0-incubating.M2

> Apache Geode 'build.gradle' inappropriately declares mavenLocal() in Repository declarations.
> ---------------------------------------------------------------------------------------------
>
>                 Key: GEODE-26
>                 URL: https://issues.apache.org/jira/browse/GEODE-26
>             Project: Geode
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 1.0.0-incubating
>         Environment: Any Gradle capable env for building Apache Geode.
>            Reporter: John Blum
>            Assignee: Anthony Baker
>            Priority: Critical
>              Labels: ApacheGeode, Gradle, Repositories, build.gradle, mavenLocal()
>             Fix For: 1.0.0-incubating.M2
>
>
> In the [build.gradle|https://github.com/apache/incubator-geode/blob/master/build.gradle#L9-10] 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...
> {code:xml}
> allprojects {
>   repositories {
>     mavenLocal()
>     maven { url "http://maven.domain.com/path/to/another/maven/repo"}
>    // etc...
>   }
> }
> {code}
> See the [Gradle documentation on init.scripts|https://docs.gradle.org/current/userguide/init_scripts.html] for more details.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)