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

Add zip+tar to publishable artifacts and add a run.sh script #1082

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

snazy
Copy link
Member

@snazy snazy commented Feb 27, 2025

Adds the tar+zip distribution archives as publishable artifacts to Maven publication.

Also updates polaris-quarkus-admin to build as a "fast-jar" instead of an "uber-jar".

Adds the tar+zip distribution archives as publishable artifacts to Maven publication.

Also updates polaris-quarkus-admin to build as a "fast-jar" instead of an "uber-jar".
@snazy
Copy link
Member Author

snazy commented Feb 27, 2025

This is a prerequisite for #785

}

quarkus {
quarkusBuildProperties.put("quarkus.package.type", "uber-jar")
quarkusBuildProperties.put("quarkus.package.type", "fast-jar")
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't this going to complicate the tool usage? It's easier to download and run a single jar than to download a zip, unpack, then run.

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree that uber-jar is more convenient for the admin tool.

Copy link
Member Author

Choose a reason for hiding this comment

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

AFAIU the current approach it is already a tgz/zip file that needs to be extracted, because of the necessary LICENSE/NOTICE files.

Copy link
Contributor

Choose a reason for hiding this comment

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

Could we include the NOTICE test into the user jar and have a CLI option to print it?

Copy link
Member

Choose a reason for hiding this comment

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

Uber jar is also an option: we can ship LICENSE/NOTICE in the meta-inf. By the way, I'm working on the license and notice content for binary distributions.

contents {
from(runScript)
from(project.layout.buildDirectory.dir("quarkus-app"))
from("../../NOTICE")
Copy link
Member

Choose a reason for hiding this comment

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

IMHO it's better to square the license/notice on the target artifacts. I can change that in second step along with license/notice.

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

Successfully merging this pull request may close these issues.

4 participants