You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ni...@apache.org on 2022/09/28 15:37:30 UTC
[pulsar] branch branch-2.11 updated: [branch-2.11] Ensure JDK8 compatibilty for Pulsar java clients (#17873)
This is an automated email from the ASF dual-hosted git repository.
nicoloboschi pushed a commit to branch branch-2.11
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-2.11 by this push:
new eb82cf0d875 [branch-2.11] Ensure JDK8 compatibilty for Pulsar java clients (#17873)
eb82cf0d875 is described below
commit eb82cf0d875e8ec07f4d7a2cda7d6a0b06c71d16
Author: Nicolò Boschi <bo...@gmail.com>
AuthorDate: Wed Sep 28 17:37:24 2022 +0200
[branch-2.11] Ensure JDK8 compatibilty for Pulsar java clients (#17873)
* [branch-2.11] Ensure JDK8 compatibilty for Pulsar java clients
* use variables
---
pom.xml | 3 ++-
pulsar-client-all/pom.xml | 27 +++++++++++++++++++++++++++
pulsar-package-management/core/pom.xml | 8 ++++++++
3 files changed, 37 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 7e0efcf78e8..de423ea3ef9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -253,7 +253,7 @@ flexible messaging model and an intuitive client API.</description>
<exec-maven-plugin.version>3.0.0</exec-maven-plugin.version>
<license-maven-plugin.version>4.0.rc2</license-maven-plugin.version>
<directory-maven-plugin.version>1.0</directory-maven-plugin.version>
- <maven-enforcer-plugin.version>3.0.0</maven-enforcer-plugin.version>
+ <maven-enforcer-plugin.version>3.1.0</maven-enforcer-plugin.version>
<!-- surefire.version is defined in apache parent pom -->
<!-- it is used for surefire, failsafe and surefire-report plugins -->
<!-- do not upgrade surefire.version to 3.0.0-M5 since it runs slowly and breaks tests. -->
@@ -280,6 +280,7 @@ flexible messaging model and an intuitive client API.</description>
<lightproto-maven-plugin.version>0.4</lightproto-maven-plugin.version>
<dependency-check-maven.version>7.1.0</dependency-check-maven.version>
<roaringbitmap.version>0.9.15</roaringbitmap.version>
+ <extra-enforcer-rules.version>1.6.1</extra-enforcer-rules.version>
<!-- Used to configure rename.netty.native. Libs -->
<rename.netty.native.libs>rename-netty-native-libs.sh</rename.netty.native.libs>
diff --git a/pulsar-client-all/pom.xml b/pulsar-client-all/pom.xml
index 991f4e0ea49..23b4ec0696b 100644
--- a/pulsar-client-all/pom.xml
+++ b/pulsar-client-all/pom.xml
@@ -397,6 +397,33 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>${maven-enforcer-plugin.version}</version>
+ <executions>
+ <execution>
+ <id>enforce-bytecode-version</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <enforceBytecodeVersion>
+ <maxJdkVersion>${pulsar.client.compiler.release}</maxJdkVersion>
+ </enforceBytecodeVersion>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>extra-enforcer-rules</artifactId>
+ <version>${extra-enforcer-rules.version}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
</plugins>
</build>
</project>
diff --git a/pulsar-package-management/core/pom.xml b/pulsar-package-management/core/pom.xml
index e111c0b55ba..9c698c12063 100644
--- a/pulsar-package-management/core/pom.xml
+++ b/pulsar-package-management/core/pom.xml
@@ -52,6 +52,14 @@
<build>
<plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <!-- This module is distributed with the Pulsar Admin Client -->
+ <release>${pulsar.client.compiler.release}</release>
+ </configuration>
+ </plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>