Skip to content

Commit 0ced0db

Browse files
committed
Auto update README.md
1 parent 93300af commit 0ced0db

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

pom.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,31 @@
6666
</plugins>
6767
</build>
6868
</profile>
69+
<profile>
70+
<id>readmeVersion</id>
71+
<build>
72+
<plugins>
73+
<plugin>
74+
<groupId>com.google.code.maven-replacer-plugin</groupId>
75+
<artifactId>replacer</artifactId>
76+
<version>1.5.3</version>
77+
<configuration>
78+
<file>README.md</file>
79+
<token><![CDATA[(?m)(<groupId>${project.groupId}</groupId>\s*<artifactId>${project.artifactId}</artifactId>\s*<version>)(\d|.)*(</version>)]]></token>
80+
<value>$1${project.version}$3</value>
81+
</configuration>
82+
</plugin>
83+
<plugin>
84+
<artifactId>maven-scm-plugin</artifactId>
85+
<version>1.9.4</version>
86+
<configuration>
87+
<includes>README.md</includes>
88+
<message>Update version in the README.md</message>
89+
</configuration>
90+
</plugin>
91+
</plugins>
92+
</build>
93+
</profile>
6994
</profiles>
7095

7196
<build>
@@ -129,6 +154,8 @@
129154
<artifactId>maven-release-plugin</artifactId>
130155
<configuration>
131156
<releaseProfiles>release</releaseProfiles>
157+
<arguments>-Psonatype-oss-release,readmeVersion</arguments>
158+
<preparationGoals>replacer:replace scm:checkin</preparationGoals>
132159
</configuration>
133160
</plugin>
134161
<plugin>

0 commit comments

Comments
 (0)