Skip to content

Commit

Permalink
Merge branch 'release/v1.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Chan committed May 23, 2024
2 parents ac21aca + 7e92a99 commit 87c55eb
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ mvn archetype:generate \
-Dpackage=com.example \
-DarchetypeGroupId=com.power4j.archetype \
-DarchetypeArtifactId=oss-lib-multi \
-DarchetypeVersion=1.2.0
-DarchetypeVersion=1.2.1
```

you will get
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.power4j.archetype</groupId>
<artifactId>oss-lib-multi</artifactId>
<version>1.2.0</version>
<version>1.2.1</version>
<packaging>maven-archetype</packaging>

<name>${project.artifactId}</name>
Expand Down Expand Up @@ -45,7 +45,7 @@
<!-- plugin -->
<maven-archetype-plugin.version>3.2.1</maven-archetype-plugin.version>
<maven-flatten-plugin.version>1.6.0</maven-flatten-plugin.version>
<maven-source-plugin.version>3.3.0</maven-source-plugin.version>
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
<maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
</properties>

Expand Down Expand Up @@ -183,7 +183,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.2</version>
<version>3.2.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/archetype-resources/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Maven Central Version](https://img.shields.io/maven-central/v/${groupId}/${rootArtifactId})](https://central.sonatype.com/artifact/${groupId}/${rootArtifactId})
[![Maven Central Version](https://img.shields.io/maven-central/v/${groupId}/${rootArtifactId}-parent)](https://central.sonatype.com/artifact/${groupId}/${rootArtifactId}-parent)

- `${rootArtifactId}-build`: build management
- `${rootArtifactId}-core`: the default library you want to publish
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,40 @@
</dependencies>
</dependencyManagement>

<build>
<plugins>
<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>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<configuration>
<offline>true</offline>
</configuration>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 87c55eb

Please sign in to comment.