This is an automated email from the ASF dual-hosted git repository.

dimas 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 dd07abd0 Move default Quarkus config to a separate module. (#811)
dd07abd0 is described below

commit dd07abd08f4d26ff46b0c6c39967702add2e559d
Author: Dmitri Bourlatchkov <[email protected]>
AuthorDate: Fri Jan 17 12:03:41 2025 -0500

    Move default Quarkus config to a separate module. (#811)
    
    * Move default Quarkus config to a separate module.
    
    Add `quarkus/defaults` to contain just the default
    `application.properties` (for now).
    
    This allows reusing `quarkus/service` with a different set
    of quarkus properties.
---
 gradle/projects.main.properties                    |  1 +
 quarkus/admin/build.gradle.kts                     |  1 +
 quarkus/defaults/README.md                         |  7 +++++++
 quarkus/defaults/build.gradle.kts                  | 22 ++++++++++++++++++++
 .../polaris/service/defaults/package-info.java     | 24 ++++++++++++++++++++++
 .../src/main/resources/application.properties      |  0
 quarkus/service/build.gradle.kts                   |  1 +
 7 files changed, 56 insertions(+)

diff --git a/gradle/projects.main.properties b/gradle/projects.main.properties
index 193d7670..468cbdf7 100644
--- a/gradle/projects.main.properties
+++ b/gradle/projects.main.properties
@@ -23,6 +23,7 @@ polaris-api-iceberg-service=api/iceberg-service
 polaris-api-management-model=api/management-model
 polaris-api-management-service=api/management-service
 polaris-service-common=service/common
+polaris-quarkus-defaults=quarkus/defaults
 polaris-quarkus-service=quarkus/service
 polaris-quarkus-server=quarkus/server
 polaris-quarkus-admin=quarkus/admin
diff --git a/quarkus/admin/build.gradle.kts b/quarkus/admin/build.gradle.kts
index ea8290a5..ab29fe2b 100644
--- a/quarkus/admin/build.gradle.kts
+++ b/quarkus/admin/build.gradle.kts
@@ -35,6 +35,7 @@ dependencies {
   implementation(project(":polaris-api-iceberg-service"))
   implementation(project(":polaris-service-common"))
   implementation(project(":polaris-quarkus-service"))
+  implementation(project(":polaris-quarkus-defaults"))
 
   implementation(enforcedPlatform(libs.quarkus.bom))
   implementation("io.quarkus:quarkus-picocli")
diff --git a/quarkus/defaults/README.md b/quarkus/defaults/README.md
new file mode 100644
index 00000000..2eb4d22e
--- /dev/null
+++ b/quarkus/defaults/README.md
@@ -0,0 +1,7 @@
+# Quarkus Default Configuration
+
+This module contains default configurations related to the Quarkus runtime.
+
+It is isolated in its own artifact to simplify building custom Quarkus-based
+Polaris servers. Automatically inheriting all properties from the main
+`application.properties` file may not always be convenient.
\ No newline at end of file
diff --git a/quarkus/defaults/build.gradle.kts 
b/quarkus/defaults/build.gradle.kts
new file mode 100644
index 00000000..95f0584b
--- /dev/null
+++ b/quarkus/defaults/build.gradle.kts
@@ -0,0 +1,22 @@
+/*
+ * 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.
+ */
+
+plugins { id("polaris-java") }
+
+tasks.withType<Javadoc> { isFailOnError = false }
diff --git 
a/quarkus/defaults/src/main/java/org/apache/polaris/service/defaults/package-info.java
 
b/quarkus/defaults/src/main/java/org/apache/polaris/service/defaults/package-info.java
new file mode 100644
index 00000000..75ce9829
--- /dev/null
+++ 
b/quarkus/defaults/src/main/java/org/apache/polaris/service/defaults/package-info.java
@@ -0,0 +1,24 @@
+/*
+ * 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.service.defaults;
+
+// This file is here as a placeholder to have some java content in
+// the corresponding jar. Relevant data is in the application.properties
+// file at the root of the resources tree.
diff --git a/quarkus/service/src/main/resources/application.properties 
b/quarkus/defaults/src/main/resources/application.properties
similarity index 100%
rename from quarkus/service/src/main/resources/application.properties
rename to quarkus/defaults/src/main/resources/application.properties
diff --git a/quarkus/service/build.gradle.kts b/quarkus/service/build.gradle.kts
index 50108700..669e54c5 100644
--- a/quarkus/service/build.gradle.kts
+++ b/quarkus/service/build.gradle.kts
@@ -28,6 +28,7 @@ dependencies {
   implementation(project(":polaris-api-management-service"))
   implementation(project(":polaris-api-iceberg-service"))
   implementation(project(":polaris-service-common"))
+  implementation(project(":polaris-quarkus-defaults"))
 
   implementation(platform(libs.iceberg.bom))
   implementation("org.apache.iceberg:iceberg-api")

Reply via email to