Demonstrates error in pom files when building shadow jars.
./gradlew :SomeLib2:publishToMavenLocal
./gradlew :SomeLib1:publishToMavenLocal
./gradlew :SomeApp:run
- Inspect SomeLib1's pom file by running
cat ~/.m2/repository/shadowpom/SomeLib1/1.0/SomeLib1-1.0.pom
- Notice that it is not referencing the
all
classifier.
- Notice that it is not referencing the
- Change
SomeLib1/build.gradle
to refer to the published version of SomeLib2 and re-run steps 2 - 4.- Notice that the pom file does reference the
all
classifier.
- Notice that the pom file does reference the