Skip to content

Conversation

@snazy
Copy link
Member

@snazy snazy commented Jan 16, 2025

We currently build Polaris Quarkus as a fast-jar. In order to eventually publish the Polaris Quarkus server in a binary release to Maven Central, it is beneficial to use an uber-jar.

This change allows to do that if the project property uber-jar is present, for example ./gradlew publishToMavenLocal -Puber-jar

Note that the Quarkus uber-jars are placed directly in the Gradle project's build/ directory, not in build/libs/

@snazy snazy changed the title Optionally build Quarkus uber-jar Optionally build Polaris Server Quarkus uber-jar Jan 16, 2025
We currently build Polaris Quarkus as a `fast-jar`. In order to eventually publish the Polaris Quarkus server in a binary release to Maven Central, it is beneficial to use an uber-jar.

This change allows to do that if the project property `uber-jar` is present, for example `./gradlew publishToMavenLocal -Puber-jar`

Note that the Quarkus uber-jars are placed directly in the Gradle project's `build/` directory, not in `build/libs/`
@adutra
Copy link
Contributor

adutra commented Jan 16, 2025

I'm not opposed to the idea, but isn't this redundant with the distribution plugin?

Right now, 2 archives are being generated with the following content, including the required license files:

image

@snazy
Copy link
Member Author

snazy commented Jan 16, 2025

I'm not opposed to the idea, but isn't this redundant with the distribution plugin?

Related, but different. The distribution plugin generates archives that users can manually extract and use. The published (uber) jar can be used as dependency for integration tests (#785).

contents {
from(project.layout.buildDirectory.dir("quarkus-app"))
if (quarkusFatJar) {
from(project.layout.buildDirectory) { include("polaris-quarkus-admin-*-runner.jar") }
Copy link
Contributor

@eric-maynard eric-maynard Jan 23, 2025

Choose a reason for hiding this comment

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

Why doesn't this go in /libs?

@snazy snazy marked this pull request as draft January 27, 2025 13:10
@snazy
Copy link
Member Author

snazy commented Jan 27, 2025

There are some pros and cons for each approach. Let's think a bit more about this change - putting it to "draft" for now.

@github-actions
Copy link

github-actions bot commented Mar 1, 2025

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Mar 1, 2025
@github-actions github-actions bot closed this Mar 12, 2025
@github-project-automation github-project-automation bot moved this from PRs In Progress to Done in Basic Kanban Board Mar 12, 2025
@snazy snazy deleted the quark-uber branch April 9, 2025 14:16
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.

3 participants