This is an automated email from the ASF dual-hosted git repository.
desruisseaux pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git
The following commit(s) were added to refs/heads/geoapi-4.0 by this push:
new 93a7dcb4d3 Automatically install the parent `pom.xml` file.
93a7dcb4d3 is described below
commit 93a7dcb4d37c92b892e910bb1ec794830b39986c
Author: Martin Desruisseaux <[email protected]>
AuthorDate: Tue Nov 14 19:13:34 2023 +0100
Automatically install the parent `pom.xml` file.
---
parent/README.md | 8 ++++++++
parent/build.gradle.kts | 23 +++++++++++++++++++++++
settings.gradle.kts | 1 +
3 files changed, 32 insertions(+)
diff --git a/parent/README.md b/parent/README.md
new file mode 100644
index 0000000000..5a97da8058
--- /dev/null
+++ b/parent/README.md
@@ -0,0 +1,8 @@
+# Apache SIS parent POM
+This directory contains the `pom.xml` file used as the parent of all Apache
SIS Maven modules.
+It also opportunistically contains resources shared by many modules.
+
+## Prerequisites
+Maven must be available on the classpath.
+The parent is built by a call to `mvn clean install`.
+This call is done automatically by the Gradle build.
diff --git a/parent/build.gradle.kts b/parent/build.gradle.kts
new file mode 100644
index 0000000000..756c7ff47a
--- /dev/null
+++ b/parent/build.gradle.kts
@@ -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.
+ */
+tasks.register<Exec>("publishToMavenLocal") {
+ commandLine("mvn", "install")
+ inputs.file("pom.xml")
+
+ // Arbitraty file used as a sentinel value for determining that the build
is done.
+ outputs.file("target/maven-shared-archive-resources/META-INF/DEPENDENCIES")
+}
diff --git a/settings.gradle.kts b/settings.gradle.kts
index e51ef630bd..c0db8b1586 100644
--- a/settings.gradle.kts
+++ b/settings.gradle.kts
@@ -22,6 +22,7 @@ val geoapiVersion = "4.0-SNAPSHOT"
* They are directory names relative to this file.
*/
include("geoapi")
+include("parent")
include("endorsed")
include("incubator")
if (System.getenv("PATH_TO_FX") != null) {