Skip to content

Commit cdda0a4

Browse files
authored
Add jdk8 support for helix-lock module (#2988)
Add jdk8 support for helix-lock module and rename jar packaging execution ids to match jdk8 and fix typos from past changes.
1 parent 33a28e7 commit cdda0a4

File tree

7 files changed

+54
-6
lines changed

7 files changed

+54
-6
lines changed

helix-common/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
<version>3.3.0</version>
126126
<executions>
127127
<execution>
128-
<id>default-package-jdk11</id>
128+
<id>default-package-jdk8</id>
129129
<phase>package</phase>
130130
<goals>
131131
<goal>jar</goal>

helix-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
<version>3.3.0</version>
216216
<executions>
217217
<execution>
218-
<id>default-package-jdk11</id>
218+
<id>default-package-jdk8</id>
219219
<phase>package</phase>
220220
<goals>
221221
<goal>jar</goal>

helix-lock/pom.xml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,54 @@
8080
</resource>
8181
</resources>
8282
<plugins>
83+
<plugin>
84+
<groupId>org.apache.maven.plugins</groupId>
85+
<artifactId>maven-compiler-plugin</artifactId>
86+
<version>3.12.1</version>
87+
<executions>
88+
<execution>
89+
<id>JDK 8</id>
90+
<phase>compile</phase>
91+
<goals>
92+
<goal>compile</goal>
93+
</goals>
94+
<configuration>
95+
<outputDirectory>${project.build.outputDirectory}_jdk8</outputDirectory>
96+
<release>8</release>
97+
<fork>true</fork>
98+
</configuration>
99+
</execution>
100+
<execution>
101+
<id>JDK 11</id>
102+
<phase>compile</phase>
103+
<goals>
104+
<goal>compile</goal>
105+
</goals>
106+
<configuration>
107+
<release>11</release>
108+
<fork>true</fork>
109+
</configuration>
110+
</execution>
111+
</executions>
112+
</plugin>
113+
<plugin>
114+
<groupId>org.apache.maven.plugins</groupId>
115+
<artifactId>maven-jar-plugin</artifactId>
116+
<version>3.3.0</version>
117+
<executions>
118+
<execution>
119+
<id>default-package-jdk8</id>
120+
<phase>package</phase>
121+
<goals>
122+
<goal>jar</goal>
123+
</goals>
124+
<configuration>
125+
<classesDirectory>${project.build.outputDirectory}_jdk8</classesDirectory>
126+
<classifier>jdk8</classifier>
127+
</configuration>
128+
</execution>
129+
</executions>
130+
</plugin>
83131
<plugin>
84132
<groupId>org.apache.maven.plugins</groupId>
85133
<artifactId>maven-assembly-plugin</artifactId>

meta-client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ under the License.
125125
<version>3.3.0</version>
126126
<executions>
127127
<execution>
128-
<id>default-package-jdk11</id>
128+
<id>default-package-jdk8</id>
129129
<phase>package</phase>
130130
<goals>
131131
<goal>jar</goal>

metadata-store-directory-common/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
<version>3.3.0</version>
150150
<executions>
151151
<execution>
152-
<id>default-package-jdk11</id>
152+
<id>default-package-jdk8</id>
153153
<phase>package</phase>
154154
<goals>
155155
<goal>jar</goal>

metrics-common/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
<version>3.3.0</version>
121121
<executions>
122122
<execution>
123-
<id>default-package-jdk11</id>
123+
<id>default-package-jdk8</id>
124124
<phase>package</phase>
125125
<goals>
126126
<goal>jar</goal>

zookeeper-api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
<version>3.3.0</version>
170170
<executions>
171171
<execution>
172-
<id>default-package-jdk11</id>
172+
<id>default-package-jdk8</id>
173173
<phase>package</phase>
174174
<goals>
175175
<goal>jar</goal>

0 commit comments

Comments
 (0)