[apache/helix] -- Provide JDK 1.8 (backward) compatibility for meta-client (#2799)
We would like to provide a backward compatible support to our consumers where they also have an option to use JDK-8 compiled helix-core and meta-client jar, if they have such a requirement. By default we will generate JDK-11 jars and JDK-8 jars using a classifier.
diff --git a/helix-core/pom.xml b/helix-core/pom.xml
index ba3d7b7..c8c5a50 100644
--- a/helix-core/pom.xml
+++ b/helix-core/pom.xml
@@ -219,7 +219,6 @@
<phase>package</phase>
<goals>
<goal>jar</goal>
- <goal>test-jar</goal>
</goals>
<configuration>
<classesDirectory>${project.build.outputDirectory}_jdk8</classesDirectory>
diff --git a/meta-client/pom.xml b/meta-client/pom.xml
index 29092ef..e08872c 100644
--- a/meta-client/pom.xml
+++ b/meta-client/pom.xml
@@ -91,6 +91,24 @@
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>3.3.0</version>
+ <executions>
+ <execution>
+ <id>default-package-jdk11</id>
+ <phase>package</phase>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ <configuration>
+ <classesDirectory>${project.build.outputDirectory}_jdk8</classesDirectory>
+ <classifier>jdk8</classifier>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>