New java-library plugin and shadowJar

I’m guessing that this is something for the Shadow plugin guys to deal with, but the new api and implementation configuration types do not work as I was expecting with shadowJar. Base on the documentation, I would have expected that dependencies with the api config would be included and those with the implementation config would not. My expectations were wrong. Only by specifying the dependencies with the compile config are they picked up by shadow.

So, either my expectations were wrong, or shadow needs to be updated to take advantage of this feature.

My assumption is that the Shadow plugin has compile hardcoded somewhere instead of using sourceSets.main.compileClasspath. Can you open an issue for them?

That would be my guess as well.