This is an automated email from the ASF dual-hosted git repository.
adutra pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new 0d3b6d1f Ability to run quarkusRun on polaris-quarkus-server (#768)
0d3b6d1f is described below
commit 0d3b6d1f6968a40a80840873c283abf5445c9697
Author: Alexandre Dutra <[email protected]>
AuthorDate: Wed Jan 15 19:10:35 2025 +0100
Ability to run quarkusRun on polaris-quarkus-server (#768)
Also adds a task named `polarisServerRun` to make it easier to run a
Polaris server with Gradle.
Note: the server is started with `prod` profile.
Also adds a note about the binary distribution and how to unpack and run it.
---
quarkus/server/README.md | 19 ++++++++++++++++++
quarkus/server/build.gradle.kts | 4 ++++
.../polaris/server/quarkus/package-info.java | 23 ++++++++++++++++++++++
3 files changed, 46 insertions(+)
diff --git a/quarkus/server/README.md b/quarkus/server/README.md
index bac32962..aade36e8 100644
--- a/quarkus/server/README.md
+++ b/quarkus/server/README.md
@@ -2,8 +2,27 @@
This module contains the Quarkus-based Polaris server main artifact.
+## Archive distribution
+
Building this module will create a zip/tar distribution with the Polaris
server.
+To build the distribution, you can use the following command:
+
+```shell
+./gradlew :polaris-quarkus-server:build
+```
+
+You can manually unpack and run the distribution archives:
+
+```shell
+cd quarkus/server/build/distributions
+unzip polaris-quarkus-server-<version>.zip
+cd polaris-quarkus-server-<version>
+java -jar quarkus-run.jar
+```
+
+## Docker image
+
To also build the Docker image, you can use the following command (a running
Docker daemon is
required):
diff --git a/quarkus/server/build.gradle.kts b/quarkus/server/build.gradle.kts
index 83e94435..f83bb131 100644
--- a/quarkus/server/build.gradle.kts
+++ b/quarkus/server/build.gradle.kts
@@ -61,6 +61,10 @@ tasks.named("distZip") { dependsOn("quarkusBuild") }
tasks.named("distTar") { dependsOn("quarkusBuild") }
+tasks.withType<Javadoc> { isFailOnError = false }
+
+tasks.register("polarisServerRun") { dependsOn("quarkusRun") }
+
distributions {
main {
contents {
diff --git
a/quarkus/server/src/main/java/org/apache/polaris/server/quarkus/package-info.java
b/quarkus/server/src/main/java/org/apache/polaris/server/quarkus/package-info.java
new file mode 100644
index 00000000..fc12d8ca
--- /dev/null
+++
b/quarkus/server/src/main/java/org/apache/polaris/server/quarkus/package-info.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.polaris.server.quarkus;
+
+// This file is here as a placeholder to allow quarkusDev and quarkusRun
+// tasks to work, since this module currently has no source files.