You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by li...@apache.org on 2019/11/22 12:14:03 UTC

[dubbo] branch master updated: add profile annotation dependency for java 11

This is an automated email from the ASF dual-hosted git repository.

liujun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/master by this push:
     new 3c9df68  add profile annotation dependency for java 11
3c9df68 is described below

commit 3c9df68007fd44acacd801451e53bdd038c3e0e1
Author: ken.lj <ke...@gmail.com>
AuthorDate: Fri Nov 22 20:13:42 2019 +0800

    add profile annotation dependency for java 11
---
 dubbo-common/pom.xml                        | 16 ++++++++++++++++
 dubbo-registry/dubbo-registry-nacos/pom.xml |  6 ------
 2 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/dubbo-common/pom.xml b/dubbo-common/pom.xml
index 95dd31a..2ac4880 100644
--- a/dubbo-common/pom.xml
+++ b/dubbo-common/pom.xml
@@ -67,4 +67,20 @@
             <artifactId>commons-io</artifactId>
         </dependency>
     </dependencies>
+
+    <profiles>
+        <profile>
+            <id>javax.annotation</id>
+            <activation>
+                <jdk>[1.11,)</jdk>
+            </activation>
+            <dependencies>
+                <dependency>
+                    <groupId>javax.annotation</groupId>
+                    <artifactId>javax.annotation-api</artifactId>
+                    <version>1.3.1</version>
+                </dependency>
+            </dependencies>
+        </profile>
+    </profiles>
 </project>
\ No newline at end of file
diff --git a/dubbo-registry/dubbo-registry-nacos/pom.xml b/dubbo-registry/dubbo-registry-nacos/pom.xml
index f06c244..9dd5ced 100644
--- a/dubbo-registry/dubbo-registry-nacos/pom.xml
+++ b/dubbo-registry/dubbo-registry-nacos/pom.xml
@@ -80,11 +80,5 @@
             <scope>test</scope>
         </dependency>
 
-        <dependency>
-            <groupId>javax.annotation</groupId>
-            <artifactId>javax.annotation-api</artifactId>
-            <version>1.3.1</version>
-        </dependency>
-
     </dependencies>
 </project>