-
Notifications
You must be signed in to change notification settings - Fork 196
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
base: main
Are you sure you want to change the base?
Conversation
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".
This is a prerequisite for #785 |
} | ||
|
||
quarkus { | ||
quarkusBuildProperties.put("quarkus.package.type", "uber-jar") | ||
quarkusBuildProperties.put("quarkus.package.type", "fast-jar") |
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.
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.
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.
I agree that uber-jar is more convenient for the admin tool.
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.
AFAIU the current approach it is already a tgz/zip file that needs to be extracted, because of the necessary LICENSE/NOTICE files.
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.
Could we include the NOTICE test into the user jar and have a CLI option to print it?
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.
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") |
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.
IMHO it's better to square the license/notice on the target artifacts. I can change that in second step along with license/notice.
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".