-
Notifications
You must be signed in to change notification settings - Fork 403
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
Do not use mapToOptional() in the shadowRuntimeElements configuration variant #693
Comments
BTW, I wonder if it makes sense to make the Also, the |
To be more formal and detailed with my proposal:
|
"Publishing the shadow jar instead of the regular JAR file" is also a (not very frequent but still existing) use-case for me. |
Shadow Version
6.1.0, 7.0.0
Gradle Version
6.9
Actual Behavior
The
shadowRuntimeElements
configuration variant is marked withmapToOptional()
here: https://github.com/johnrengelman/shadow/blob/7eaffb78a020e024a3618b9c6f9c54730b8f23c0/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/ShadowJavaPlugin.groovy#L55I'm not sure if this makes sense. If the user excludes the default
apiElements
andruntimeElements
configurations from being published, ensuring that only theshadowRuntimeElements
configuration is published, the POM descriptor is populated with dependencies from theshadow
configuration (due toshadowRuntimeElements
extendingshadow
), but they are all marked asoptional
, which totally does not make sense as they are most definitely not optional.Expected Behavior
The
shadowRuntimeElements
variant is not marked as optional.Gradle Build Script(s)
Content of Shadow JAR (
jar tf <jar file>
- post link to GIST if too long)N/A
The text was updated successfully, but these errors were encountered: