Skip to content

baron1405/repro840

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reproduction of Issue "IllegalAccessError in unnamed module #840"

This is a very simple Gradle build which reproduces IllegalAccessError in unnamed module #840.

The cause is Guava incompatibilities between the dependency-analysis plugin and transitive dependencies in the buildSrc build. When the dependency-analysis plugin is applied to the root build, it will try to resolve its dependency on Guava from any direct or transitive dependencies on Guava from the buildSrc dependencies. Due to class loader behavior for buildSrc, if the versions of Guava do not match, an IllegalAccessError will result.

To reproduce:

  1. Clone this repo
  2. Run ./gradlew buildHealth

See the buildSrc/build.gradle.kts for more details and a workaround. Please consider shadowing (or even better eliminating) Guava.

About

Reproduce dependency-analysis plugin issue 840

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published