Closed dodgex closed 10 years ago
This appears to be an unexpected side-effect of an early port of Maven's dependency analyze task. That task analyzes the class files to identify unused dependencies that can be removed. The analyzer has a transitive dependency to Google Collections 1.0, which is pre-Guava. Unfortunately, I guess Gradle doesn't isolate plugins into their own classloader to avoid these collisions.
It is currently disabled as it requires more work. Probably the best solution is to add an exclusion for com.google.collections:google-collections:1.0
in the next release and add a Guava one instead.
The only benefit of v0.4 is that it is (mostly) compatible with Gradle 1.8-rc-1.
runtime - Runtime classpath for source set 'main'.
+--- org.apache.maven.shared:maven-dependency-analyzer:1.4
| +--- asm:asm:3.3.1
| +--- org.codehaus.plexus:plexus-utils:1.5.1
| +--- org.codehaus.plexus:plexus-component-annotations:1.5.5
| +--- org.apache.maven:maven-project:2.0.5
| | +--- org.apache.maven:maven-settings:2.0.5
| | | +--- org.apache.maven:maven-model:2.0.5
| | | | \--- org.codehaus.plexus:plexus-utils:1.1 -> 1.5.1
| | | +--- org.codehaus.plexus:plexus-utils:1.1 -> 1.5.1
| | | \--- org.codehaus.plexus:plexus-container-default:1.0-alpha-9 -> 1.5.5
| | | +--- org.codehaus.plexus:plexus-utils:1.4.5 -> 1.5.1
| | | +--- org.codehaus.plexus:plexus-classworlds:2.2.2
| | | +--- org.apache.xbean:xbean-reflect:3.4
| | | | +--- log4j:log4j:1.2.12
| | | | \--- commons-logging:commons-logging-api:1.1
| | | +--- com.google.collections:google-collections:1.0
| | | \--- junit:junit:3.8.2
| | +--- org.apache.maven:maven-profile:2.0.5
| | | +--- org.apache.maven:maven-model:2.0.5 (*)
| | | +--- org.codehaus.plexus:plexus-utils:1.1 -> 1.5.1
| | | \--- org.codehaus.plexus:plexus-container-default:1.0-alpha-9 -> 1.5.5 (*)
| | +--- org.apache.maven:maven-model:2.0.5 (*)
| | +--- org.apache.maven:maven-artifact-manager:2.0.5
| | | +--- org.apache.maven:maven-repository-metadata:2.0.5
| | | | \--- org.codehaus.plexus:plexus-utils:1.1 -> 1.5.1
| | | +--- org.codehaus.plexus:plexus-utils:1.1 -> 1.5.1
| | | +--- org.apache.maven:maven-artifact:2.0.5
| | | | \--- org.codehaus.plexus:plexus-utils:1.1 -> 1.5.1
| | | +--- org.codehaus.plexus:plexus-container-default:1.0-alpha-9 -> 1.5.5 (*)
| | | \--- org.apache.maven.wagon:wagon-provider-api:1.0-beta-2
| | | \--- org.codehaus.plexus:plexus-utils:1.0.4 -> 1.5.1
| | +--- org.codehaus.plexus:plexus-utils:1.1 -> 1.5.1
| | +--- org.apache.maven:maven-artifact:2.0.5 (*)
| | \--- org.codehaus.plexus:plexus-container-default:1.0-alpha-9 -> 1.5.5 (*)
| +--- org.apache.maven:maven-model:2.0.5 (*)
| \--- org.apache.maven:maven-artifact:2.0.5 (*)
\--- org.codehaus.plexus:plexus-container-default:1.5.5 (*)
google-collections
is not the only one causing issues here. I also get issues because of the outdated asm
dependency. I'll move the dependencyAnalyze
-related code to a separate git branch.
is the plugin with this changes again usable with the android plugin?
i would like to upgrade the android plugin but this requires Gradle 1.8.
I should think so, yes, but you're probably going to have to build it yourself as the 0.4 version in Maven central does not include the changes and I'm not able to create a release.
Fyi, the android gradle plugin just upgraded to 0.7.0 and requires gradle 1.9 which causes this issue. Until this is fixed I can't use this plugin at all.
Could you please try to add
maven { url "https://github.com/ben-manes/gradle-versions-plugin/raw/mvnrepo" }
to your buildscript.repositories
and update to 0.5-beta-1?
Please reopen if you still have issues with the newest version.
Today i did
gradlew dependencyUpdates
and got told that there is a 0.4 of this plugin.after setting my 0.3 to 0.4 i get this message:
Line 13 is:
apply plugin: 'android'
Here is the stacktrace.
maybe it is an incompability with the android plugin... no idea :(
I use gradle 1.7