This is an automated email from the ASF dual-hosted git repository.
jxue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/helix.git
The following commit(s) were added to refs/heads/master by this push:
new c11cddf91 [apache/helix] -- [Part-2] Enable JDK 1.8 (backward)
compatibility for meta-client (#2802)
c11cddf91 is described below
commit c11cddf916fa7809ea99a10d97aa18dc8bc90a87
Author: Himanshu Kandwal <[email protected]>
AuthorDate: Thu May 9 13:44:49 2024 -0700
[apache/helix] -- [Part-2] Enable JDK 1.8 (backward) compatibility for
meta-client (#2802)
We would like to provide a backward compatible support to our consumers
where they also have an option to use JDK-8 compiled meta-client jar, if they
have such a requirement. By default we will generate JDK-11 jars and JDK-8 jars
using a classifier.
---
meta-client/pom.xml | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/meta-client/pom.xml b/meta-client/pom.xml
index e08872c8c..a4762eb37 100644
--- a/meta-client/pom.xml
+++ b/meta-client/pom.xml
@@ -89,6 +89,36 @@ under the License.
</resource>
</resources>
<plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.12.1</version>
+ <executions>
+ <execution>
+ <id>JDK 8</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ <configuration>
+
<outputDirectory>${project.build.outputDirectory}_jdk8</outputDirectory>
+ <release>8</release>
+ <fork>true</fork>
+ </configuration>
+ </execution>
+ <execution>
+ <id>JDK 11</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ <configuration>
+ <release>11</release>
+ <fork>true</fork>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>