File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 66
66
</plugins >
67
67
</build >
68
68
</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 >
69
94
</profiles >
70
95
71
96
<build >
129
154
<artifactId >maven-release-plugin</artifactId >
130
155
<configuration >
131
156
<releaseProfiles >release</releaseProfiles >
157
+ <arguments >-Psonatype-oss-release,readmeVersion</arguments >
158
+ <preparationGoals >replacer:replace scm:checkin</preparationGoals >
132
159
</configuration >
133
160
</plugin >
134
161
<plugin >
You can’t perform that action at this time.
0 commit comments