Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven dependency not published for shadow dependency on project #541

Open
ejjcase opened this issue Jan 24, 2020 · 0 comments
Open

Maven dependency not published for shadow dependency on project #541

ejjcase opened this issue Jan 24, 2020 · 0 comments

Comments

@ejjcase
Copy link

ejjcase commented Jan 24, 2020

Please check the User Guide before submitting "how do I do 'x'?" questions!

Shadow Version

5.2.0

Gradle Version

5.6.4

Expected Behavior

I have a multi-project build with subprojects foo-api and foo-impl. Both are published with maven-publish. foo-impl uses shadow and has this dependency:

shadow(project(":foo-api"))

When I publish foo-impl I expect the .pom to declare a runtime dependency on foo-api with the appropriate group and version.

Actual Behavior

The .pom does not declare any dependencies.

I can work around the problem by declaring the dependency like this instead:

shadow("$group:foo-api:$version")

but this only works if that version of foo-api is already published - an unsafe assumption.

Gradle Build Script(s)

Content of Shadow JAR (jar tf <jar file> - post link to GIST if too long)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant