Hello everyone,

I have a plugin that is used in a multi-project setup. The root project is
not intended to use the plugin so it is applied only in subprojects.

The plugin defines the repositories for the subprojects such:
        target.repositories {
            if (!project.hasProperty('release')) {
                mavenRepo name: "localRepo", urls: target.localMavenRepoDir,
{ checkmodified = true; }
                mavenRepo name: "snapshotRepo", urls: project.nexusBase +
project.snapShotUploadRepo, { checkmodified = true; }
            }
            mavenRepo name: "companyRepo", urls: project.nexusBase +
project.companyRepo, { checkmodified = true;  }
         }

I'm marking certain dependencies as changing (not using changingPattern).
The problem I have is that each time a subproject is resolved the
checkmodified detects my changes to the dependencies.

So I get an output something like:

...
:subA:compileJava
Download file:/C:/Users/.../depA.pom
Download file:/C:/Users/.../depA.jar
...
:subB:compileJava
Download file:/C:/Users/.../depA.pom
Download file:/C:/Users/.../depA.jar
...

That is the download is repeated for each subproject (they are using the
same dependencies a lot).
Does anyone know of a way to have the repositories(resolvers) know of the
download the previous one did?
There is no problem if I build the subprojects separately so it only happens
when I run all the subprojects from the root.

regards
Gretar

Reply via email to