Hi Thor,
On 03/10/2011, at 2:32 PM, Thor Åge Eldby wrote:
> Hi.
>
> I have a module (a plugin) I need to develop new extensions to now and then.
> This module has its own project. When developing it I try to use the maven
> plugin to install (gradle install) new versions to the local maven repository
> (~/.m2/repository):
>
> apply plugin: 'java'
> apply plugin: 'maven'
> group = 'no.org'
> version = '14-SNAPSHOT'
>
> Then I try to test the updated version from the other project:
>
> buildscript {
> repositories {
> mavenLocal()
> }
> dependencies {
> classpath('no.org:myplugin:14-SNAPSHOT')
> }
> }
>
>
> The first time of course is ok, but after that I will always get the same
> stale jar. I assume this is because it gets stuck in the ivy repository. If I
> delete ~/.gradle I will get a new version again. However its a little bit
> cumbersome to have to remove the global cache each time. Is there anyway
> around this?
>
> See example projects in zip
I just ran this example and didn't have any problem with it as is.
I ran `gradle install` in myplugin, then `gradle doTest` in mypluginuser. I
then changed the message in myp.Test, ran `gradle install` then ran `gradle
doTest` in mypluginuser and saw the updated message.
Could there be something else in your environment getting in the way?
--
Luke Daley
Principal Engineer, Gradleware
http://gradleware.com