I have two projects A and B that I build with gradle using the maven plugin. B depends on A. When I run install on project A the corresponding jar is installed into:
Afterwards I build B (also running install) which also installs into:
Now to the wierd part. If I add the eclipse plugin and generate .classpath files:
clean --refresh dependencies cleanEclipseClasspath eclipseClasspath install
I see that B actually uses A from (opening the corresponding .classpath file):
<classpathentry kind="lib" path="C:/Users/.../.gradle/caches/artifacts-14/filestore/com.mygroup/A/1.0-SNAPSHOT/jar/af40dc0b198bd036ac19d000f530ad88f179ccf4/A-1.0-SNAPSHOT.jar" exported="true"/>
Even worse the A artifacts in .gradle and .m2 are not identical (I have tried to wipe both repos and doing a clean build)! Any ideas what goes wrong here?
And why are my projects installed into .gradle when I use the maven plugin?