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 2020/02/04 09:43:42 UTC

[zookeeper] branch master updated: ZOOKEEPER-3703: publish a test JAR

This is an automated email from the ASF dual-hosted git repository.

eolivelli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/zookeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new 6db92d7  ZOOKEEPER-3703: publish a test JAR
6db92d7 is described below

commit 6db92d7dfa426488b191afba319a16b96f4a36c6
Author: Jordan Zimmerman <jo...@grubhub.com>
AuthorDate: Tue Feb 4 10:43:30 2020 +0100

    ZOOKEEPER-3703: publish a test JAR
    
    It would be very helpful to Apache Curator and others if ZooKeeper published its testing code as a Maven Test JAR. Curator, for example, could use it to improve its testing server to make it easier to inject error conditions without having to have forced time delays and other hacks.
    
    NOTE: if we move forward with gRPC (ZOOKEEPER-102) that would be in a new module and this would be required. So, might as well do it now.
    
    Author: Jordan Zimmerman <jo...@grubhub.com>
    
    Reviewers: Enrico Olivelli <eo...@apache.org>, Norbert Kalmar <nk...@apache.org>
    
    Closes #1229 from Randgalt/ZOOKEEPER-3703-publish-test-jar
---
 zookeeper-server/pom.xml | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/zookeeper-server/pom.xml b/zookeeper-server/pom.xml
index 86b578d..444e824 100755
--- a/zookeeper-server/pom.xml
+++ b/zookeeper-server/pom.xml
@@ -294,7 +294,20 @@
           </systemPropertyVariables>
         </configuration>
       </plugin>
-    </plugins>
+	  
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>publish-test-jar</id>
+            <goals>
+              <goal>test-jar</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+     </plugins>
   </build>
 
 </project>