Skip to content

Commit

Permalink
Flattened maven version
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Chan committed Aug 4, 2023
1 parent 6021bdf commit bd238d9
Show file tree
Hide file tree
Showing 9 changed files with 96 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bench-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>com.power4j.kit</groupId>
<artifactId>sequence</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<artifactId>bench-test</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/actuator-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>com.power4j.kit</groupId>
<artifactId>sequence-examples</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<artifactId>actuator-example</artifactId>
<name>actuator-example</name>
Expand Down
2 changes: 1 addition & 1 deletion examples/jdbc-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>com.power4j.kit</groupId>
<artifactId>sequence-examples</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<artifactId>jdbc-example</artifactId>
<name>jdbc-example</name>
Expand Down
2 changes: 1 addition & 1 deletion examples/mongo-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>com.power4j.kit</groupId>
<artifactId>sequence-examples</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<artifactId>mongo-example</artifactId>
<name>mongo-example</name>
Expand Down
2 changes: 1 addition & 1 deletion examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>com.power4j.kit</groupId>
<artifactId>sequence</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<artifactId>sequence-examples</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/redis-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>com.power4j.kit</groupId>
<artifactId>sequence-examples</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<artifactId>redis-example</artifactId>
<name>redis-example</name>
Expand Down
39 changes: 38 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<groupId>com.power4j.kit</groupId>
<artifactId>sequence</artifactId>
<version>2.0.3-SNAPSHOT</version>
<version>${revision}</version>
<name>${project.artifactId}</name>
<packaging>pom</packaging>

Expand Down Expand Up @@ -55,6 +55,7 @@
</developers>

<properties>
<revision>2.0.3-SNAPSHOT</revision>
<skipTests>true</skipTests>
<java.version>17</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand All @@ -63,6 +64,7 @@
<maven.compiler.target>${java.version}</maven.compiler.target>
<spring-javaformat.plugin.version>0.0.39</spring-javaformat.plugin.version>
<git.commit.plugin.version>4.9.10</git.commit.plugin.version>
<flatten-maven-plugin.version>1.2.7</flatten-maven-plugin.version>
<spring-boot.version>3.1.2</spring-boot.version>
</properties>

Expand Down Expand Up @@ -114,6 +116,11 @@
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>${flatten-maven-plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
Expand Down Expand Up @@ -167,6 +174,36 @@
<goals>deploy</goals>
</configuration>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<configuration>
<updatePomFile>true</updatePomFile>
<flattenMode>oss</flattenMode>
<embedBuildProfileDependencies>true</embedBuildProfileDependencies>
<pomElements>
<distributionManagement>remove</distributionManagement>
<repositories>remove</repositories>
</pomElements>
</configuration>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<execution>
<id>flatten-clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
27 changes: 26 additions & 1 deletion sequence-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>com.power4j.kit</groupId>
<artifactId>sequence</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<artifactId>sequence-core</artifactId>
Expand Down Expand Up @@ -80,6 +80,31 @@
<skip>false</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<inherited>true</inherited>
<executions>
<execution>
<!-- Tidy up all POMs before they are published -->
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
<configuration>
<updatePomFile>true</updatePomFile>
<flattenMode>oss</flattenMode>
<embedBuildProfileDependencies>true</embedBuildProfileDependencies>
<pomElements>
<parent>expand</parent>
<distributionManagement>remove</distributionManagement>
<repositories>remove</repositories>
</pomElements>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
27 changes: 26 additions & 1 deletion sequence-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>com.power4j.kit</groupId>
<artifactId>sequence</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<artifactId>sequence-spring-boot-starter</artifactId>
Expand Down Expand Up @@ -75,6 +75,31 @@
<skip>false</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<inherited>true</inherited>
<executions>
<execution>
<!-- Tidy up all POMs before they are published -->
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
<configuration>
<updatePomFile>true</updatePomFile>
<flattenMode>oss</flattenMode>
<embedBuildProfileDependencies>true</embedBuildProfileDependencies>
<pomElements>
<parent>expand</parent>
<distributionManagement>remove</distributionManagement>
<repositories>remove</repositories>
</pomElements>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit bd238d9

Please sign in to comment.