You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by li...@apache.org on 2022/06/01 15:45:23 UTC

[incubator-shenyu] branch master updated: fix issue that can't run sofa application using zk registration (#3470)

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

likeguo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-shenyu.git


The following commit(s) were added to refs/heads/master by this push:
     new f3fa676dd fix issue that can't run sofa application using zk registration (#3470)
f3fa676dd is described below

commit f3fa676dd7439e8bb36da752a2fee0816bc09ebe
Author: Han Gao <dh...@hotmail.com>
AuthorDate: Wed Jun 1 23:45:17 2022 +0800

    fix issue that can't run sofa application using zk registration (#3470)
---
 shenyu-bootstrap/pom.xml                           | 20 ++++++++++-
 .../shenyu-examples-sofa-service/pom.xml           | 39 +++++++++++++++++++++-
 2 files changed, 57 insertions(+), 2 deletions(-)

diff --git a/shenyu-bootstrap/pom.xml b/shenyu-bootstrap/pom.xml
index 05151cf68..25ee710cd 100644
--- a/shenyu-bootstrap/pom.xml
+++ b/shenyu-bootstrap/pom.xml
@@ -28,6 +28,7 @@
     <properties>
         <nacos-discovery.version>2021.0.1.0</nacos-discovery.version>
         <eureka-client.version>3.1.2</eureka-client.version>
+        <bootstrap-curator.version>4.0.1</bootstrap-curator.version>
     </properties>
 
     <dependencies>
@@ -454,7 +455,24 @@
             <version>${project.version}</version>
         </dependency>
         <!--shenyu logging-rocketmq plugin end-->
-        
+
+        <!-- curator start -->
+        <dependency>
+            <groupId>org.apache.curator</groupId>
+            <artifactId>curator-client</artifactId>
+            <version>${bootstrap-curator.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.curator</groupId>
+            <artifactId>curator-framework</artifactId>
+            <version>${bootstrap-curator.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.curator</groupId>
+            <artifactId>curator-recipes</artifactId>
+            <version>${bootstrap-curator.version}</version>
+        </dependency>
+        <!-- curator end -->
     </dependencies>
     <profiles>
         <profile>
diff --git a/shenyu-examples/shenyu-examples-sofa/shenyu-examples-sofa-service/pom.xml b/shenyu-examples/shenyu-examples-sofa/shenyu-examples-sofa-service/pom.xml
index 4716ff645..61014c3f5 100644
--- a/shenyu-examples/shenyu-examples-sofa/shenyu-examples-sofa-service/pom.xml
+++ b/shenyu-examples/shenyu-examples-sofa/shenyu-examples-sofa-service/pom.xml
@@ -28,9 +28,23 @@
     <artifactId>shenyu-examples-sofa-service</artifactId>
 
     <properties>
-        <rpc-sofa-boot-starter.version>6.0.4</rpc-sofa-boot-starter.version>
+        <rpc-sofa-boot-starter.version>3.12.1</rpc-sofa-boot-starter.version>
+        <curator.version>4.0.1</curator.version>
+        <micrometer.version>1.8.6</micrometer.version>
     </properties>
 
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>com.alipay.sofa</groupId>
+                <artifactId>sofaboot-dependencies</artifactId>
+                <version>${rpc-sofa-boot-starter.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
     <dependencies>
         <dependency>
             <groupId>com.alipay.sofa</groupId>
@@ -38,6 +52,22 @@
             <version>${rpc-sofa-boot-starter.version}</version>
         </dependency>
 
+        <dependency>
+            <groupId>org.apache.curator</groupId>
+            <artifactId>curator-client</artifactId>
+            <version>${curator.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.curator</groupId>
+            <artifactId>curator-framework</artifactId>
+            <version>${curator.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.curator</groupId>
+            <artifactId>curator-recipes</artifactId>
+            <version>${curator.version}</version>
+        </dependency>
+
         <!--shenyu consul register center -->
         <!--<dependency>
             <groupId>org.springframework.cloud</groupId>
@@ -72,6 +102,13 @@
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-starter-web</artifactId>
         </dependency>
+
+        <dependency>
+            <groupId>io.micrometer</groupId>
+            <artifactId>micrometer-core</artifactId>
+            <version>${micrometer.version}</version>
+            <scope>compile</scope>
+        </dependency>
     </dependencies>
 
     <build>