You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by tz...@apache.org on 2021/05/25 07:36:00 UTC
[flink-statefun] branch master updated: [FLINK-22468] Add
dependency to javax.annotations
This is an automated email from the ASF dual-hosted git repository.
tzulitai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink-statefun.git
The following commit(s) were added to refs/heads/master by this push:
new a6f2e9f [FLINK-22468] Add dependency to javax.annotations
a6f2e9f is described below
commit a6f2e9fc799edd9a52c8c684df41b7e371d546d0
Author: Tzu-Li (Gordon) Tai <tz...@apache.org>
AuthorDate: Mon Apr 26 13:27:15 2021 +0800
[FLINK-22468] Add dependency to javax.annotations
This enables building StateFun with Java 11, since javax.annotations was
removed with JDK 11.
This closes #230.
---
statefun-shaded/pom.xml | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/statefun-shaded/pom.xml b/statefun-shaded/pom.xml
index 737accb..9f8b7a9 100644
--- a/statefun-shaded/pom.xml
+++ b/statefun-shaded/pom.xml
@@ -36,6 +36,16 @@ under the License.
<generated-sources.basedir>${basedir}/target/generated-sources/</generated-sources.basedir>
</properties>
+ <dependencies>
+ <!-- This is required to enable building with Java 11, since javax.annotation was removed in Java 11 -->
+ <dependency>
+ <groupId>javax.annotation</groupId>
+ <artifactId>javax.annotation-api</artifactId>
+ <version>1.3.2</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
<modules>
<module>statefun-protobuf-shaded</module>
<module>statefun-protocol-shaded</module>