From 4b8b679115aaaa7a3ecb5ee28264ac6536248787 Mon Sep 17 00:00:00 2001 From: conghuhu Date: Wed, 14 Jun 2023 08:15:34 +0800 Subject: [PATCH 1/3] chore: add seata sentinel starter & rename tracing starter --- .artifacts | 14 +++-- .../dubbo-demo-spring-boot-consumer/pom.xml | 2 +- .../dubbo-demo-spring-boot-provider/pom.xml | 2 +- dubbo-distribution/dubbo-bom/pom.xml | 22 +++++-- .../dubbo-seata-spring-boot-starter/pom.xml | 59 +++++++++++++++++++ .../pom.xml | 51 ++++++++++++++++ .../observability/autoconfigure/pom.xml | 4 +- .../pom.xml | 6 +- .../pom.xml | 6 +- .../pom.xml | 6 +- .../pom.xml | 6 +- .../observability/pom.xml | 10 ++-- .../dubbo-spring-boot-starters/pom.xml | 2 + dubbo-test/dubbo-dependencies-all/pom.xml | 20 +++++-- 14 files changed, 172 insertions(+), 38 deletions(-) create mode 100644 dubbo-spring-boot/dubbo-spring-boot-starters/dubbo-seata-spring-boot-starter/pom.xml create mode 100644 dubbo-spring-boot/dubbo-spring-boot-starters/dubbo-sentinel-spring-boot-starter/pom.xml rename dubbo-spring-boot/dubbo-spring-boot-starters/observability/{dubbo-spring-boot-observability-starter => dubbo-observability-spring-boot-starter}/pom.xml (90%) rename dubbo-spring-boot/dubbo-spring-boot-starters/observability/{dubbo-spring-boot-tracing-brave-zipkin-starter => dubbo-tracing-brave-zipkin-spring-boot-starter}/pom.xml (90%) rename dubbo-spring-boot/dubbo-spring-boot-starters/observability/{dubbo-spring-boot-tracing-otel-otlp-starter => dubbo-tracing-otel-otlp-spring-boot-starter}/pom.xml (90%) rename dubbo-spring-boot/dubbo-spring-boot-starters/observability/{dubbo-spring-boot-tracing-otel-zipkin-starter => dubbo-tracing-otel-zipkin-spring-boot-starter}/pom.xml (90%) diff --git a/.artifacts b/.artifacts index e18fed5eb5c..1d8d3f1cf0c 100644 --- a/.artifacts +++ b/.artifacts @@ -102,17 +102,19 @@ dubbo-spring-boot-actuator-compatible dubbo-spring-boot-autoconfigure dubbo-spring-boot-autoconfigure-compatible dubbo-spring-boot-compatible -dubbo-spring-boot-observability-starters -dubbo-spring-boot-observability-autoconfigure -dubbo-spring-boot-tracing-brave-zipkin-starter -dubbo-spring-boot-tracing-otel-zipkin-starter -dubbo-spring-boot-tracing-otel-otlp-starter -dubbo-spring-boot-observability-starter +dubbo-observability-spring-boot-starters +dubbo-observability-spring-boot-autoconfigure +dubbo-tracing-brave-zipkin-spring-boot-starter +dubbo-tracing-otel-zipkin-spring-boot-starter +dubbo-tracing-otel-otlp-spring-boot-starter +dubbo-observability-spring-boot-starter dubbo-spring-boot-starter dubbo-spring-boot-starters dubbo-nacos-spring-boot-starter dubbo-zookeeper-spring-boot-starter dubbo-zookeeper-curator5-spring-boot-starter +dubbo-sentinel-spring-boot-starter +dubbo-seata-spring-boot-starter dubbo-spring-security dubbo-tracing dubbo-xds diff --git a/dubbo-demo/dubbo-demo-spring-boot/dubbo-demo-spring-boot-consumer/pom.xml b/dubbo-demo/dubbo-demo-spring-boot/dubbo-demo-spring-boot-consumer/pom.xml index 191af45a65e..c52600bc1cc 100644 --- a/dubbo-demo/dubbo-demo-spring-boot/dubbo-demo-spring-boot-consumer/pom.xml +++ b/dubbo-demo/dubbo-demo-spring-boot/dubbo-demo-spring-boot-consumer/pom.xml @@ -133,7 +133,7 @@ org.apache.dubbo - dubbo-spring-boot-tracing-otel-zipkin-starter + dubbo-tracing-otel-zipkin-spring-boot-starter ${project.version} diff --git a/dubbo-demo/dubbo-demo-spring-boot/dubbo-demo-spring-boot-provider/pom.xml b/dubbo-demo/dubbo-demo-spring-boot/dubbo-demo-spring-boot-provider/pom.xml index 1a2a3ad0244..7b458fac191 100644 --- a/dubbo-demo/dubbo-demo-spring-boot/dubbo-demo-spring-boot-provider/pom.xml +++ b/dubbo-demo/dubbo-demo-spring-boot/dubbo-demo-spring-boot-provider/pom.xml @@ -127,7 +127,7 @@ org.apache.dubbo - dubbo-spring-boot-tracing-otel-zipkin-starter + dubbo-tracing-otel-zipkin-spring-boot-starter ${project.version} diff --git a/dubbo-distribution/dubbo-bom/pom.xml b/dubbo-distribution/dubbo-bom/pom.xml index dac1366414d..e6013b59cf0 100644 --- a/dubbo-distribution/dubbo-bom/pom.xml +++ b/dubbo-distribution/dubbo-bom/pom.xml @@ -516,32 +516,32 @@ org.apache.dubbo - dubbo-spring-boot-observability-starters + dubbo-observability-spring-boot-starters ${project.version} org.apache.dubbo - dubbo-spring-boot-observability-autoconfigure + dubbo-observability-spring-boot-autoconfigure ${project.version} org.apache.dubbo - dubbo-spring-boot-tracing-otel-zipkin-starter + dubbo-tracing-otel-zipkin-spring-boot-starter ${project.version} org.apache.dubbo - dubbo-spring-boot-tracing-otel-otlp-starter + dubbo-tracing-otel-otlp-spring-boot-starter ${project.version} org.apache.dubbo - dubbo-spring-boot-tracing-brave-zipkin-starter + dubbo-tracing-brave-zipkin-spring-boot-starter ${project.version} org.apache.dubbo - dubbo-spring-boot-observability-starter + dubbo-observability-spring-boot-starter ${project.version} @@ -559,6 +559,16 @@ dubbo-zookeeper-curator5-spring-boot-starter ${project.version} + + org.apache.dubbo + dubbo-sentinel-spring-boot-starter + ${project.version} + + + org.apache.dubbo + dubbo-seata-spring-boot-starter + ${project.version} + diff --git a/dubbo-spring-boot/dubbo-spring-boot-starters/dubbo-seata-spring-boot-starter/pom.xml b/dubbo-spring-boot/dubbo-spring-boot-starters/dubbo-seata-spring-boot-starter/pom.xml new file mode 100644 index 00000000000..dea8350dfb1 --- /dev/null +++ b/dubbo-spring-boot/dubbo-spring-boot-starters/dubbo-seata-spring-boot-starter/pom.xml @@ -0,0 +1,59 @@ + + + + 4.0.0 + + org.apache.dubbo + dubbo-spring-boot-starters + ${revision} + ../pom.xml + + + dubbo-seata-spring-boot-starter + ${revision} + jar + Apache Dubbo Seata Spring Boot Starter + + + 1.6.1 + + + + + + io.seata + seata-spring-boot-starter + ${seata.version} + + + io.seata + seata-core + + + + + + io.seata + seata-core + ${seata.version} + + + + \ No newline at end of file diff --git a/dubbo-spring-boot/dubbo-spring-boot-starters/dubbo-sentinel-spring-boot-starter/pom.xml b/dubbo-spring-boot/dubbo-spring-boot-starters/dubbo-sentinel-spring-boot-starter/pom.xml new file mode 100644 index 00000000000..6f6c07bae97 --- /dev/null +++ b/dubbo-spring-boot/dubbo-spring-boot-starters/dubbo-sentinel-spring-boot-starter/pom.xml @@ -0,0 +1,51 @@ + + + + 4.0.0 + + org.apache.dubbo + dubbo-spring-boot-starters + ${revision} + ../pom.xml + + + dubbo-sentinel-spring-boot-starter + ${revision} + jar + Apache Dubbo Sentinel Spring Boot Starter + + + 1.8.6 + + + + + com.alibaba.csp + sentinel-apache-dubbo3-adapter + ${sentinel.version} + + + com.alibaba.csp + sentinel-transport-simple-http + ${sentinel.version} + + + + \ No newline at end of file diff --git a/dubbo-spring-boot/dubbo-spring-boot-starters/observability/autoconfigure/pom.xml b/dubbo-spring-boot/dubbo-spring-boot-starters/observability/autoconfigure/pom.xml index e8d997bda9d..dcbf52ba404 100644 --- a/dubbo-spring-boot/dubbo-spring-boot-starters/observability/autoconfigure/pom.xml +++ b/dubbo-spring-boot/dubbo-spring-boot-starters/observability/autoconfigure/pom.xml @@ -19,14 +19,14 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - dubbo-spring-boot-observability-starters + dubbo-observability-spring-boot-starters org.apache.dubbo ${revision} ../pom.xml 4.0.0 - dubbo-spring-boot-observability-autoconfigure + dubbo-observability-spring-boot-autoconfigure diff --git a/dubbo-spring-boot/dubbo-spring-boot-starters/observability/dubbo-spring-boot-observability-starter/pom.xml b/dubbo-spring-boot/dubbo-spring-boot-starters/observability/dubbo-observability-spring-boot-starter/pom.xml similarity index 90% rename from dubbo-spring-boot/dubbo-spring-boot-starters/observability/dubbo-spring-boot-observability-starter/pom.xml rename to dubbo-spring-boot/dubbo-spring-boot-starters/observability/dubbo-observability-spring-boot-starter/pom.xml index 16c09acabd9..ce94cf3ddc9 100644 --- a/dubbo-spring-boot/dubbo-spring-boot-starters/observability/dubbo-spring-boot-observability-starter/pom.xml +++ b/dubbo-spring-boot/dubbo-spring-boot-starters/observability/dubbo-observability-spring-boot-starter/pom.xml @@ -19,21 +19,21 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - dubbo-spring-boot-observability-starters + dubbo-observability-spring-boot-starters org.apache.dubbo ${revision} ../pom.xml 4.0.0 - dubbo-spring-boot-observability-starter + dubbo-observability-spring-boot-starter jar Apache Dubbo Spring Boot Observability Starter org.apache.dubbo - dubbo-spring-boot-observability-autoconfigure + dubbo-observability-spring-boot-autoconfigure ${project.version} diff --git a/dubbo-spring-boot/dubbo-spring-boot-starters/observability/dubbo-spring-boot-tracing-brave-zipkin-starter/pom.xml b/dubbo-spring-boot/dubbo-spring-boot-starters/observability/dubbo-tracing-brave-zipkin-spring-boot-starter/pom.xml similarity index 90% rename from dubbo-spring-boot/dubbo-spring-boot-starters/observability/dubbo-spring-boot-tracing-brave-zipkin-starter/pom.xml rename to dubbo-spring-boot/dubbo-spring-boot-starters/observability/dubbo-tracing-brave-zipkin-spring-boot-starter/pom.xml index ac619e43027..2567edc06a7 100644 --- a/dubbo-spring-boot/dubbo-spring-boot-starters/observability/dubbo-spring-boot-tracing-brave-zipkin-starter/pom.xml +++ b/dubbo-spring-boot/dubbo-spring-boot-starters/observability/dubbo-tracing-brave-zipkin-spring-boot-starter/pom.xml @@ -19,21 +19,21 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - dubbo-spring-boot-observability-starters + dubbo-observability-spring-boot-starters org.apache.dubbo ${revision} ../pom.xml 4.0.0 - dubbo-spring-boot-tracing-brave-zipkin-starter + dubbo-tracing-brave-zipkin-spring-boot-starter jar Apache Dubbo Spring Boot Tracing Brave Zipkin Starter org.apache.dubbo - dubbo-spring-boot-observability-autoconfigure + dubbo-observability-spring-boot-autoconfigure ${project.version} diff --git a/dubbo-spring-boot/dubbo-spring-boot-starters/observability/dubbo-spring-boot-tracing-otel-otlp-starter/pom.xml b/dubbo-spring-boot/dubbo-spring-boot-starters/observability/dubbo-tracing-otel-otlp-spring-boot-starter/pom.xml similarity index 90% rename from dubbo-spring-boot/dubbo-spring-boot-starters/observability/dubbo-spring-boot-tracing-otel-otlp-starter/pom.xml rename to dubbo-spring-boot/dubbo-spring-boot-starters/observability/dubbo-tracing-otel-otlp-spring-boot-starter/pom.xml index 57af321b3e8..da4909ab61c 100644 --- a/dubbo-spring-boot/dubbo-spring-boot-starters/observability/dubbo-spring-boot-tracing-otel-otlp-starter/pom.xml +++ b/dubbo-spring-boot/dubbo-spring-boot-starters/observability/dubbo-tracing-otel-otlp-spring-boot-starter/pom.xml @@ -20,20 +20,20 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - dubbo-spring-boot-observability-starters + dubbo-observability-spring-boot-starters org.apache.dubbo ${revision} ../pom.xml - dubbo-spring-boot-tracing-otel-otlp-starter + dubbo-tracing-otel-otlp-spring-boot-starter jar Apache Dubbo Spring Boot Tracing Otel OTLP Starter org.apache.dubbo - dubbo-spring-boot-observability-autoconfigure + dubbo-observability-spring-boot-autoconfigure ${project.version} diff --git a/dubbo-spring-boot/dubbo-spring-boot-starters/observability/dubbo-spring-boot-tracing-otel-zipkin-starter/pom.xml b/dubbo-spring-boot/dubbo-spring-boot-starters/observability/dubbo-tracing-otel-zipkin-spring-boot-starter/pom.xml similarity index 90% rename from dubbo-spring-boot/dubbo-spring-boot-starters/observability/dubbo-spring-boot-tracing-otel-zipkin-starter/pom.xml rename to dubbo-spring-boot/dubbo-spring-boot-starters/observability/dubbo-tracing-otel-zipkin-spring-boot-starter/pom.xml index 97279d2b730..bbe734c0427 100644 --- a/dubbo-spring-boot/dubbo-spring-boot-starters/observability/dubbo-spring-boot-tracing-otel-zipkin-starter/pom.xml +++ b/dubbo-spring-boot/dubbo-spring-boot-starters/observability/dubbo-tracing-otel-zipkin-spring-boot-starter/pom.xml @@ -19,21 +19,21 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - dubbo-spring-boot-observability-starters + dubbo-observability-spring-boot-starters org.apache.dubbo ${revision} ../pom.xml 4.0.0 - dubbo-spring-boot-tracing-otel-zipkin-starter + dubbo-tracing-otel-zipkin-spring-boot-starter jar Apache Dubbo Spring Boot Tracing Otel Zipkin Starter org.apache.dubbo - dubbo-spring-boot-observability-autoconfigure + dubbo-observability-spring-boot-autoconfigure ${project.version} diff --git a/dubbo-spring-boot/dubbo-spring-boot-starters/observability/pom.xml b/dubbo-spring-boot/dubbo-spring-boot-starters/observability/pom.xml index 17343de5082..8d1d43c2e9e 100644 --- a/dubbo-spring-boot/dubbo-spring-boot-starters/observability/pom.xml +++ b/dubbo-spring-boot/dubbo-spring-boot-starters/observability/pom.xml @@ -27,14 +27,14 @@ 4.0.0 pom - dubbo-spring-boot-observability-starters + dubbo-observability-spring-boot-starters autoconfigure - dubbo-spring-boot-tracing-otel-zipkin-starter - dubbo-spring-boot-tracing-brave-zipkin-starter - dubbo-spring-boot-observability-starter - dubbo-spring-boot-tracing-otel-otlp-starter + dubbo-tracing-otel-zipkin-spring-boot-starter + dubbo-tracing-brave-zipkin-spring-boot-starter + dubbo-observability-spring-boot-starter + dubbo-tracing-otel-otlp-spring-boot-starter diff --git a/dubbo-spring-boot/dubbo-spring-boot-starters/pom.xml b/dubbo-spring-boot/dubbo-spring-boot-starters/pom.xml index 7414f9e7867..0049d173071 100644 --- a/dubbo-spring-boot/dubbo-spring-boot-starters/pom.xml +++ b/dubbo-spring-boot/dubbo-spring-boot-starters/pom.xml @@ -36,6 +36,8 @@ dubbo-nacos-spring-boot-starter dubbo-zookeeper-spring-boot-starter dubbo-zookeeper-curator5-spring-boot-starter + dubbo-sentinel-spring-boot-starter + dubbo-seata-spring-boot-starter \ No newline at end of file diff --git a/dubbo-test/dubbo-dependencies-all/pom.xml b/dubbo-test/dubbo-dependencies-all/pom.xml index 991154acbb9..79e2ee11be3 100644 --- a/dubbo-test/dubbo-dependencies-all/pom.xml +++ b/dubbo-test/dubbo-dependencies-all/pom.xml @@ -400,27 +400,27 @@ org.apache.dubbo - dubbo-spring-boot-observability-autoconfigure + dubbo-observability-spring-boot-autoconfigure ${project.version} org.apache.dubbo - dubbo-spring-boot-tracing-otel-zipkin-starter + dubbo-tracing-otel-zipkin-spring-boot-starter ${project.version} org.apache.dubbo - dubbo-spring-boot-tracing-otel-otlp-starter + dubbo-tracing-otel-otlp-spring-boot-starter ${project.version} org.apache.dubbo - dubbo-spring-boot-tracing-brave-zipkin-starter + dubbo-tracing-brave-zipkin-spring-boot-starter ${project.version} org.apache.dubbo - dubbo-spring-boot-observability-starter + dubbo-observability-spring-boot-starter ${project.version} @@ -438,6 +438,16 @@ dubbo-zookeeper-curator5-spring-boot-starter ${project.version} + + org.apache.dubbo + dubbo-sentinel-spring-boot-starter + ${project.version} + + + org.apache.dubbo + dubbo-seata-spring-boot-starter + ${project.version} + From ca0db4e442fd20a7c66bf1aa92275b01bf3bfe93 Mon Sep 17 00:00:00 2001 From: conghuhu Date: Mon, 19 Jun 2023 08:22:31 +0800 Subject: [PATCH 2/3] chore: add seata & sentinel to dubbo-dependencies-bom --- dubbo-dependencies-bom/pom.xml | 30 +++++++++++++++++++ .../dubbo-seata-spring-boot-starter/pom.xml | 3 -- .../pom.xml | 3 -- 3 files changed, 30 insertions(+), 6 deletions(-) diff --git a/dubbo-dependencies-bom/pom.xml b/dubbo-dependencies-bom/pom.xml index 1c3a7eec138..35d02374022 100644 --- a/dubbo-dependencies-bom/pom.xml +++ b/dubbo-dependencies-bom/pom.xml @@ -150,6 +150,8 @@ 8.5.87 0.7.5 2.2.3 + 1.8.6 + 1.6.1 1.55.1 0.8.1 1.2.2 @@ -818,6 +820,34 @@ nacos-client ${nacos_version} + + + com.alibaba.csp + sentinel-apache-dubbo3-adapter + ${sentinel.version} + + + com.alibaba.csp + sentinel-transport-simple-http + ${sentinel.version} + + + + io.seata + seata-spring-boot-starter + ${seata.version} + + + io.seata + seata-core + + + + + io.seata + seata-core + ${seata.version} + io.grpc diff --git a/dubbo-spring-boot/dubbo-spring-boot-starters/dubbo-seata-spring-boot-starter/pom.xml b/dubbo-spring-boot/dubbo-spring-boot-starters/dubbo-seata-spring-boot-starter/pom.xml index dea8350dfb1..c5b089d42b0 100644 --- a/dubbo-spring-boot/dubbo-spring-boot-starters/dubbo-seata-spring-boot-starter/pom.xml +++ b/dubbo-spring-boot/dubbo-spring-boot-starters/dubbo-seata-spring-boot-starter/pom.xml @@ -32,7 +32,6 @@ Apache Dubbo Seata Spring Boot Starter - 1.6.1 @@ -40,7 +39,6 @@ io.seata seata-spring-boot-starter - ${seata.version} io.seata @@ -52,7 +50,6 @@ io.seata seata-core - ${seata.version} diff --git a/dubbo-spring-boot/dubbo-spring-boot-starters/dubbo-sentinel-spring-boot-starter/pom.xml b/dubbo-spring-boot/dubbo-spring-boot-starters/dubbo-sentinel-spring-boot-starter/pom.xml index 6f6c07bae97..0e6dfd5c9d8 100644 --- a/dubbo-spring-boot/dubbo-spring-boot-starters/dubbo-sentinel-spring-boot-starter/pom.xml +++ b/dubbo-spring-boot/dubbo-spring-boot-starters/dubbo-sentinel-spring-boot-starter/pom.xml @@ -32,19 +32,16 @@ Apache Dubbo Sentinel Spring Boot Starter - 1.8.6 com.alibaba.csp sentinel-apache-dubbo3-adapter - ${sentinel.version} com.alibaba.csp sentinel-transport-simple-http - ${sentinel.version} From 208d2a6b16b6bf45b90b6e6a55dd1079db07356f Mon Sep 17 00:00:00 2001 From: Albumen Kevin Date: Sun, 18 Jun 2023 14:21:43 +0800 Subject: [PATCH 3/3] Update .licenserc.yaml --- .licenserc.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.licenserc.yaml b/.licenserc.yaml index f19fa8a6d0a..e4452028524 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -199,10 +199,26 @@ dependency: license: Apache-2.0 - name: org.sonatype.plexus:plexus-cipher license: Apache-2.0 + - name: com.alibaba.csp:sentinel-apache-dubbo3-adapter + license: Apache-2.0 + - name: com.alibaba.csp:sentinel-transport-simple-http + license: Apache-2.0 + - name: com.alibaba.csp:sentinel-transport-common + license: Apache-2.0 + - name: com.alibaba.csp:sentinel-datasource-extension + license: Apache-2.0 + - name: com.alibaba.csp:sentinel-core + license: Apache-2.0 - name: com.google.protobuf:protobuf-java license: BSD 3-clause - name: com.google.protobuf:protobuf-java-util license: BSD 3-clause + - name: org.antlr:antlr4 + license: BSD 3-clause + - name: org.antlr:antlr-runtime + license: BSD 3-clause + - name: org.antlr:ST4 + license: BSD 3-clause # multi license - name: org.javassist:javassist license: Apache-2.0