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

chore(DAT-19084): we should always attach source, unless it's a pro extension that uses pro-guard #201

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

filipelautert
Copy link
Contributor

chore: we should always attach source, unless it's a pro extension that uses pro-guard

@filipelautert filipelautert changed the title chore: we should always attach source, unless it's a pro extension that uses pro-guard chore(DAT-19084): we should always attach source, unless it's a pro extension that uses pro-guard Nov 25, 2024
Copy link
Contributor

@StevenMassaro StevenMassaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it does the opposite, attaching sources only if the run-proguard profile is activated. Am I misreading it?

Also - won't maven central reject the submission if we don't supply a jar with some kind of sources and readme?

@filipelautert
Copy link
Contributor Author

filipelautert commented Nov 25, 2024

This looks like it does the opposite, attaching sources only if the run-proguard profile is activated. Am I misreading it?

Also - won't maven central reject the submission if we don't supply a jar with some kind of sources and readme?

@StevenMassaro with this PR it is running the default attach sources if run-proguard is not specified;
and if it's pro-guard it runs the custom execution, that only attaches the readme.sources.txt files. In the custom execution it uses the include tag , and if you include something everything else is ignored.

Right now the custom execution is being activated for everyone, thus generating empty sources.jar files as no readme.sources.txt is available in OSS extensions.

@KushnirykOleh
Copy link
Contributor

i had to disable those 2 executions to get sources and javadoc jars, as otherwise jar plugin was overriding what other plugins created.
liquibase/liquibase-databricks#219
So for me it seems like legit fix - don't try to put readme.javadocs.txt in sources and javadoc jars for normal executions

@filipelautert filipelautert merged commit 39a88c3 into main Nov 28, 2024
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants