Skip to content

Commit 6b3cbf3

Browse files
committed
update version in readme.adoc upon compile
1 parent c977bd8 commit 6b3cbf3

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

pom.xml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,41 @@
249249
</plugins>
250250
</build>
251251
</profile>
252+
<profile>
253+
<id>update-doc</id>
254+
<activation>
255+
<os>
256+
<family>unix</family>
257+
</os>
258+
</activation>
259+
<build>
260+
<plugins>
261+
<plugin>
262+
<groupId>org.codehaus.mojo</groupId>
263+
<artifactId>exec-maven-plugin</artifactId>
264+
<version>3.0.0</version>
265+
<executions>
266+
<execution>
267+
<id>update_readme</id>
268+
<goals>
269+
<goal>exec</goal>
270+
</goals>
271+
<phase>compile</phase>
272+
<configuration>
273+
<executable>sed</executable>
274+
<arguments>
275+
<argument>-i</argument>
276+
<argument>s/\(:version:\) \(.*\)/\1 ${project.version}/g</argument>
277+
<argument>readme.adoc</argument>
278+
</arguments>
279+
</configuration>
280+
</execution>
281+
</executions>
282+
<inherited>false</inherited>
283+
</plugin>
284+
</plugins>
285+
</build>
286+
</profile>
252287
</profiles>
253288

254289
</project>

0 commit comments

Comments
 (0)