-
Notifications
You must be signed in to change notification settings - Fork 993
Use subproject to generate distribution instead of root #1463
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
Conversation
canBeResolved = true | ||
canBeConsumed = false | ||
attributes { | ||
attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage, 'packaging')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Brilliant. Seems we've finally nailed down these configuration attributes to work the way we want.
Exports for javadoc generation are different from exports required for source jars because one contains only java code (including generated), and the other contains original code (java and scala, no generated java) Add scala code to the regular sources exported configurations. In scala projects that add source dirs, add the new sources to the correct configurations. Fixed a bug where javadocs were not getting all sources passed to them. Fixed header display for final distribution javadocs.
I think I'm good for review on this now. I left in the current root project distribution logic for now since release process depends on it. Once this is merged, I'll make the changes to release process to look at the new location for distribution artifacts, then follow up on this project to remove the old root project distribution tasks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Created a dist project and using it to construct the zip/uberjar Add javadocSources and javadocElements configurations. Exports for javadoc generation are different from exports required for source jars because one contains only java code (including generated), and the other contains original code (java and scala, no generated java) Add scala code to the regular sources exported configurations. In scala projects that add source dirs, add the new sources to the correct configurations.
Relates #1423 |
This PR adds a subproject (
dist
) which collects the contents of all integrations together into the project uberjar, and the zip distribution. Currently, these are created in the root project, mostly without proper dependency modeling.Creating as Draft to collect some feedback.