You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zookeeper.apache.org by eo...@apache.org on 2019/11/30 12:45:10 UTC
[zookeeper] 01/03: ZOOKEEPER-3635 Use Docker and Maven Release
Plugin to prepare ZooKeeper releases
This is an automated email from the ASF dual-hosted git repository.
eolivelli pushed a commit to branch fix/ZOOKEEPER-3635-new-release-proc
in repository https://gitbox.apache.org/repos/asf/zookeeper.git
commit ebd0d06baa622425bccbd8157a541b9b6f864c39
Author: Enrico Olivelli <eo...@apache.org>
AuthorDate: Sat Nov 30 00:42:50 2019 +0100
ZOOKEEPER-3635 Use Docker and Maven Release Plugin to prepare ZooKeeper releases
---
pom.xml | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/pom.xml b/pom.xml
index a08bb25..5368101 100755
--- a/pom.xml
+++ b/pom.xml
@@ -245,6 +245,12 @@
<email>fangmin@apache.org</email>
<timezone>-8</timezone>
</developer>
+ <developer>
+ <id>eolivelli</id>
+ <name>Enrico Olivelli</name>
+ <email>eolivelli@apache.org</email>
+ <timezone>+1</timezone>
+ </developer>
</developers>
<profiles>
@@ -520,10 +526,18 @@
<configuration>
<releaseProfiles>apache-release</releaseProfiles>
<arguments>-Dmaven.test.skip.exec ${arguments}</arguments>
+ <!-- update the version inside the C sources -->
+ <preparationGoals>antrun:run@replace-cclient-files-during-release scm:add@add-cclient-files-during-release scm:checkin@commit-cclient-files-during-release</preparationGoals>
+ <completionGoals>antrun:run@replace-cclient-files-during-release scm:add@add-cclient-files-during-release scm:checkin@commit-cclient-files-during-release</completionGoals>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-scm-plugin</artifactId>
+ <version>1.11.2</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
</plugin>
@@ -681,9 +695,48 @@
</target>
</configuration>
</execution>
+ <execution>
+ <id>replace-cclient-files-during-release</id>
+ <phase>none</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <target>
+ <replaceregexp file="zookeeper-client/zookeeper-client-c/CMakeLists.txt" match="project.*" replace="project(zookeeper VERSION ${project.version)" byline="true" />
+ <replaceregexp file="zookeeper-client/zookeeper-client-c/configure.ac" match="AC_INIT.*" replace="AC_INIT([zookeeper C client],${project.version},[user@zookeeper.apache.org],[zookeeper])" byline="true" />
+ </target>
+ </configuration>
+ </execution>
</executions>
</plugin>
<plugin>
+ <artifactId>maven-scm-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>add-cclient-files-during-release</id>
+ <phase>none</phase>
+ <goals>
+ <goal>add</goal>
+ </goals>
+ <configuration>
+ <includes>zookeeper-client/zookeeper-client-c/CMakeLists.txt,zookeeper-client/zookeeper-client-c/configure.ac</includes>
+ </configuration>
+ </execution>
+ <execution>
+ <id>commit-cclient-files-during-release</id>
+ <phase>none</phase>
+ <goals>
+ <!-- git commit -->
+ <goal>checkin</goal>
+ </goals>
+ <configuration>
+ <message>Released ${project.version}</message>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>