From 3cb873ec066f2cd0f6a7576428fe27b055019179 Mon Sep 17 00:00:00 2001 From: Laurent Goujon Date: Thu, 24 Jan 2019 14:30:19 +0100 Subject: [PATCH] ARROW-4298: [Java] Add javax.annotation-api dependency for JDK >= 9 JDK9 and onwards removed/renamed @Generated annotation used by code generation tool like grpc, causing build failures. Adding javax.annotation-api dependency as a substitute and exclude it from the dependency check as only used at compilation time but not preserved at runtime. Author: Laurent Goujon Closes #3459 from laurentgo/laurentgo/ARROW-4298 and squashes the following commits: a184b822 ARROW-4298: Add javax.annotation-api dependency --- java/flight/pom.xml | 6 +++++- java/pom.xml | 9 +++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/java/flight/pom.xml b/java/flight/pom.xml index fece6122e2932..67733f382946e 100644 --- a/java/flight/pom.xml +++ b/java/flight/pom.xml @@ -103,6 +103,10 @@ org.slf4j slf4j-api + + javax.annotation + javax.annotation-api + @@ -214,7 +218,7 @@ analyze-only - + io.netty:netty-tcnative-boringssl-static:* diff --git a/java/pom.xml b/java/pom.xml index 95b8bd596b8f2..9093bfa46d7db 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -334,6 +334,10 @@ true true + + + javax.annotation:javax.annotation-api:* + @@ -530,6 +534,11 @@ slf4j-api ${dep.slf4j.version} + + javax.annotation + javax.annotation-api + 1.3.2 +