This is an automated email from the ASF dual-hosted git repository. kontinuation pushed a commit to branch try-release-process in repository https://gitbox.apache.org/repos/asf/sedona.git
commit 11599591c6a9fe82d336695075b46224c3e824c9 Author: Kristin Cowalcijk <[email protected]> AuthorDate: Mon Jun 19 15:46:32 2023 +0800 Fixed maven prepare-release by including all submodules when executing prepare release --- pom.xml | 12 ++++++++++++ sql/pom.xml | 12 ++++++++++++ sql/spark-3.0/pom.xml | 2 +- sql/spark-3.4/pom.xml | 2 +- 4 files changed, 26 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index d1ddef4f..e76905b3 100644 --- a/pom.xml +++ b/pom.xml @@ -360,6 +360,18 @@ <artifactId>maven-shade-plugin</artifactId> <version>3.4.1</version> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-release-plugin</artifactId> + <version>3.0.1</version> + <configuration> + <autoResolveSnapshots>all</autoResolveSnapshots> + <autoVersionSubmodules>true</autoVersionSubmodules> + <!-- Don't enable all submodules when running the + actual build using modified POMs --> + <preparationProfiles>!enable-all-submodules</preparationProfiles> + </configuration> + </plugin> <plugin> <groupId>net.alchim31.maven</groupId> <artifactId>scala-maven-plugin</artifactId> diff --git a/sql/pom.xml b/sql/pom.xml index beabf121..9f52f40e 100644 --- a/sql/pom.xml +++ b/sql/pom.xml @@ -41,6 +41,18 @@ <module>spark-${spark.compat.version}</module> </modules> + <!-- Add non-default submodules when running `mvn release:prepare + -Penable-all-submodules`, so that project versions of all submodules + will be substituted --> + <profiles> + <profile> + <id>enable-all-submodules</id> + <modules> + <module>spark-3.4</module> + </modules> + </profile> + </profiles> + <dependencyManagement> <dependencies> <dependency> diff --git a/sql/spark-3.0/pom.xml b/sql/spark-3.0/pom.xml index 39d51a2a..c5ab6490 100644 --- a/sql/spark-3.0/pom.xml +++ b/sql/spark-3.0/pom.xml @@ -25,7 +25,7 @@ <version>1.4.1-SNAPSHOT</version> <relativePath>../pom.xml</relativePath> </parent> - <artifactId>sedona-sql-${spark.compat.version}_${scala.compat.version}</artifactId> + <artifactId>sedona-sql-3.0_${scala.compat.version}</artifactId> <name>${project.groupId}:${project.artifactId}</name> <description>A cluster computing system for processing large-scale spatial data: SQL API for Spark 3.0 - 3.3.</description> diff --git a/sql/spark-3.4/pom.xml b/sql/spark-3.4/pom.xml index 531d4498..ca18129e 100644 --- a/sql/spark-3.4/pom.xml +++ b/sql/spark-3.4/pom.xml @@ -25,7 +25,7 @@ <version>1.4.1-SNAPSHOT</version> <relativePath>../pom.xml</relativePath> </parent> - <artifactId>sedona-sql-${spark.compat.version}_${scala.compat.version}</artifactId> + <artifactId>sedona-sql-3.4_${scala.compat.version}</artifactId> <name>${project.groupId}:${project.artifactId}</name> <description>A cluster computing system for processing large-scale spatial data: SQL API for Spark 3.4.</description>
