Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Infrastructure] Dependency upgrades for 2.7.7 #711 #712

Merged
merged 55 commits into from
May 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
877c9ef
Merge pull request #5 from apache/master
mercyblitz May 28, 2019
515164e
Merge pull request #6 from mercyblitz/master
mercyblitz May 28, 2019
eb9e8a6
Update revision to be 2.7.2-SNAPSHOT
mercyblitz May 28, 2019
cddcd95
Polish apache/dubbo-spring-boot-project#494 : AwaitingNonWebApplicati…
mercyblitz May 28, 2019
e740196
Polish apache/dubbo-spring-boot-project#496 : Dubbo Spring Boot 2.7.1…
mercyblitz May 28, 2019
ee223ec
Polish apache/dubbo-spring-boot-project#494 : AwaitingNonWebApplicati…
mercyblitz May 28, 2019
0203caf
Polish apache/dubbo-spring-boot-project#496 : Dubbo Spring Boot 2.7.1…
mercyblitz May 28, 2019
bb5f8d9
Polish apache/dubbo-spring-boot-project#553 : Upgrade the dependencie…
mercyblitz Jul 18, 2019
33b8ed8
Polish apache/dubbo-spring-boot-project#553 : Upgrade Spring Boot to …
mercyblitz Jul 18, 2019
24ff965
Polish apache/dubbo-spring-boot-project#554 : To change the Dependenc…
mercyblitz Jul 18, 2019
7095840
Polish apache/dubbo-spring-boot-project#560 : [QA] Fix the bugs of te…
mercyblitz Jul 29, 2019
d0eebc7
Polish apache/dubbo-spring-boot-project#561 : [Version] Upgrade Dubbo…
mercyblitz Jul 29, 2019
4b1b865
Polish apache/dubbo-spring-boot-project#555 : Add the Maven profiles …
mercyblitz Jul 29, 2019
871251a
Polish apache/dubbo-spring-boot-project#555 : [Feature] Add the Maven…
mercyblitz Jul 29, 2019
4816758
Update Documents' version
mercyblitz Jul 29, 2019
5ca5018
Merge branch '2.7.x' into 2.7.x
mercyblitz Jul 29, 2019
bc38480
Fix the bugs of Test cases
mercyblitz Jul 30, 2019
f0d5dec
Merge remote-tracking branch 'upstream/2.7.x' into 2.7.x
mercyblitz Jul 30, 2019
b73a7e3
Fix the bugs of Test cases
mercyblitz Jul 30, 2019
ea56e86
Polish apache/dubbo-spring-boot-project#569 : DISCLAIMER can be removed
mercyblitz Aug 6, 2019
9bc8201
Polish apache/dubbo-spring-boot-project#571 : Remove incubating and D…
mercyblitz Aug 6, 2019
6cd2de5
Polish apache/dubbo-spring-boot-project#496 : [Issue] Dubbo Spring Bo…
mercyblitz Aug 6, 2019
8a620ca
Polish apache/dubbo-spring-boot-project#496 : Fixes the test cases
mercyblitz Aug 6, 2019
a40aca1
Merge remote-tracking branch 'upstream/master' into 2.7.x
mercyblitz Oct 29, 2019
c2c813a
Polish apache/dubbo-spring-boot-project#607
mercyblitz Oct 29, 2019
f92c194
Merge branch '2.7.x' into 2.7.x
mercyblitz Oct 29, 2019
79d1691
Polish apache/dubbo-spring-boot-project#619
mercyblitz Oct 29, 2019
6d438f1
Merge remote-tracking branch 'origin/2.7.x' into 2.7.x
mercyblitz Oct 29, 2019
f0d68c2
Polish
mercyblitz Dec 16, 2019
e0d0378
Polish apache/dubbo-spring-boot-project#635 : [Infrastructure] Upgrad…
mercyblitz Dec 16, 2019
b50ed60
Update the maven-javadoc-plugin to be 3.1.1
mercyblitz Dec 16, 2019
fa4fdee
Polish apache/dubbo-spring-boot-project#636 : [Infrastructure] Upgrad…
mercyblitz Dec 16, 2019
3565266
Polish apache/dubbo-spring-boot-project#637 : [Infrastructure] Upgrad…
mercyblitz Dec 16, 2019
76dc1ee
Polish apache/dubbo-spring-boot-project#638
mercyblitz Dec 30, 2019
4430093
Polish apache/dubbo-spring-boot-project#638
mercyblitz Dec 30, 2019
c233e17
Polish apache/dubbo-spring-boot-project#638
mercyblitz Dec 30, 2019
cd98762
Polish apache/dubbo-spring-boot-project#642
mercyblitz Dec 31, 2019
25a6296
Correct words
mercyblitz Dec 31, 2019
1e35339
Merge remote-tracking branch 'upstream/master' into 2.7.x
mercyblitz Feb 24, 2020
37cb4af
Merge remote-tracking branch 'upstream/master' into 2.7.x
mercyblitz Feb 25, 2020
d69bb6d
Polish apache/dubbo-spring-boot-project#647
mercyblitz Feb 25, 2020
b39f420
Polish apache/dubbo-spring-boot-project#648 : Remove the external pro…
mercyblitz Feb 25, 2020
43c0534
Merge remote-tracking branch 'upstream/master' into 2.7.x
mercyblitz Mar 31, 2020
7836638
Polish apache/dubbo-spring-boot-project#688 : [Infrastructure] Upgrad…
mercyblitz Mar 31, 2020
f52286a
Merge remote-tracking branch 'upstream/2.7.x' into 2.7.x
mercyblitz Mar 31, 2020
0774423
Update the samples
mercyblitz Apr 1, 2020
c4e5340
Update the samples
mercyblitz Apr 1, 2020
b66f0cc
Update the samples and documents
mercyblitz Apr 1, 2020
a0d88b7
2.7.x (#691)
mercyblitz Apr 6, 2020
f6251cb
Fix #692
mercyblitz Apr 13, 2020
35568ff
Remove deprecated sudo setting. (#707)
dengliming May 19, 2020
9ef994d
Merge remote-tracking branch 'upstream/master' into 2.7.x
mercyblitz May 19, 2020
09fd582
Polish apache/dubbo-spring-boot-project#711 : [Infrastructure] Depend…
mercyblitz May 19, 2020
62f6d9a
Polish apache/dubbo-spring-boot-project#711 : [Infrastructure] Depend…
mercyblitz May 19, 2020
c7952be
Merge branch '2.7.x' into 2.7.x
mercyblitz May 19, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
language: java
sudo: false # faster builds

jdk:
- openjdk11
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
You can introduce the latest `dubbo-spring-boot-starter` to your project by adding the following dependency to your pom.xml
```xml
<properties>
<spring-boot.version>2.2.6.RELEASE</spring-boot.version>
<dubbo.version>2.7.6</dubbo.version>
<spring-boot.version>2.3.0.RELEASE</spring-boot.version>
<dubbo.version>2.7.7</dubbo.version>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -50,7 +50,7 @@ You can introduce the latest `dubbo-spring-boot-starter` to your project by addi
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-spring-boot-starter</artifactId>
<version>2.7.6</version>
<version>2.7.7</version>
</dependency>
</dependencies>
```
Expand Down Expand Up @@ -200,7 +200,7 @@ public interface DemoService {
name: dubbo-auto-configure-consumer-sample
```

If `DubboProviderDemo` works well, please mark sure `DubboProviderDemo` is started.
If `DubboProviderDemo` works well, please make sure `DubboProviderDemo` is started.

More details, please refer to [Samples](dubbo-spring-boot-samples).

Expand Down
10 changes: 5 additions & 5 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
您可以为您的工程引入最新 `dubbo-spring-boot-starter` 的发布,增加以下依赖到工程的 `pom.xml` 文件中:
```xml
<properties>
<spring-boot.version>2.2.6.RELEASE</spring-boot.version>
<dubbo.version>2.7.6</dubbo.version>
<spring-boot.version>2.3.0.RELEASE</spring-boot.version>
<dubbo.version>2.7.7</dubbo.version>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -72,7 +72,7 @@
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-spring-boot-starter</artifactId>
<version>2.7.6</version>
<version>2.7.7</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -244,9 +244,9 @@ public interface DemoService {

如果您在使用 Dubbo Spring Boot 中遇到任何问题或者有什么建议? 我们非常需要您的支持!

- 如果您需要升级版本,请提前阅读[发布公告](https://github.com/apache/dubbo-spring-boot-project/releases),了解最新的特性和问题修复。
- 如果您需要升级版本,请提前阅读[发布公告](https://github.com/dubbo/dubbo-spring-boot-project/releases),了解最新的特性和问题修复。
- 如果您遇到任何问题 ,您可以订阅 [Dubbo 用户邮件列表](mailto:dubbo+subscribe@googlegroups.com)。
- 问题反馈,您可以在 [issues](https://github.com/apache/dubbo-spring-boot-project/issues) 提出您遇到的使用问题。
- 问题反馈,您可以在 [issues](https://github.com/dubbo/dubbo-spring-boot-project/issues) 提出您遇到的使用问题。



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
import org.apache.dubbo.spring.boot.actuate.endpoint.DubboReferencesMetadataEndpoint;
import org.apache.dubbo.spring.boot.actuate.endpoint.DubboServicesMetadataEndpoint;
import org.apache.dubbo.spring.boot.actuate.endpoint.DubboShutdownEndpoint;
import org.springframework.boot.actuate.autoconfigure.endpoint.condition.ConditionalOnEnabledEndpoint;
import org.apache.dubbo.spring.boot.actuate.endpoint.condition.CompatibleConditionalOnEnabledEndpoint;

import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
Expand All @@ -44,42 +45,42 @@ public class DubboEndpointAnnotationAutoConfiguration {

@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledEndpoint
@CompatibleConditionalOnEnabledEndpoint
public DubboMetadataEndpoint dubboEndpoint() {
return new DubboMetadataEndpoint();
}

@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledEndpoint
@CompatibleConditionalOnEnabledEndpoint
public DubboConfigsMetadataEndpoint dubboConfigsMetadataEndpoint() {
return new DubboConfigsMetadataEndpoint();
}

@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledEndpoint
@CompatibleConditionalOnEnabledEndpoint
public DubboPropertiesMetadataEndpoint dubboPropertiesEndpoint() {
return new DubboPropertiesMetadataEndpoint();
}

@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledEndpoint
@CompatibleConditionalOnEnabledEndpoint
public DubboReferencesMetadataEndpoint dubboReferencesMetadataEndpoint() {
return new DubboReferencesMetadataEndpoint();
}

@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledEndpoint
@CompatibleConditionalOnEnabledEndpoint
public DubboServicesMetadataEndpoint dubboServicesMetadataEndpoint() {
return new DubboServicesMetadataEndpoint();
}

@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledEndpoint
@CompatibleConditionalOnEnabledEndpoint
public DubboShutdownEndpoint dubboShutdownEndpoint() {
return new DubboShutdownEndpoint();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import org.apache.dubbo.spring.boot.actuate.endpoint.metadata.AbstractDubboMetadata;
import org.apache.dubbo.spring.boot.actuate.endpoint.metadata.DubboConfigsMetadata;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package org.apache.dubbo.spring.boot.actuate.endpoint;

import org.apache.dubbo.spring.boot.actuate.endpoint.metadata.DubboMetadata;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import org.apache.dubbo.spring.boot.actuate.endpoint.metadata.AbstractDubboMetadata;
import org.apache.dubbo.spring.boot.actuate.endpoint.metadata.DubboPropertiesMetadata;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import org.apache.dubbo.config.annotation.Reference;
import org.apache.dubbo.spring.boot.actuate.endpoint.metadata.AbstractDubboMetadata;
import org.apache.dubbo.spring.boot.actuate.endpoint.metadata.DubboReferencesMetadata;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.spring.boot.actuate.endpoint.metadata.AbstractDubboMetadata;
import org.apache.dubbo.spring.boot.actuate.endpoint.metadata.DubboServicesMetadata;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import org.apache.dubbo.spring.boot.actuate.endpoint.metadata.AbstractDubboMetadata;
import org.apache.dubbo.spring.boot.actuate.endpoint.metadata.DubboShutdownMetadata;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.WriteOperation;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dubbo.spring.boot.actuate.endpoint.condition;

import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.EndpointExtension;
import org.springframework.context.annotation.Conditional;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
* {@link Conditional} that checks whether or not an endpoint is enabled, which is compatible with
* org.springframework.boot.actuate.autoconfigure.endpoint.condition.ConditionalOnEnabledEndpoint ([2.0.x, 2.2.x])
* org.springframework.boot.actuate.autoconfigure.endpoint.condition.ConditionalOnAvailableEndpoint
*
* @see CompatibleOnEnabledEndpointCondition
* @since 2.7.7
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})
@Documented
@Conditional(CompatibleOnEnabledEndpointCondition.class)
public @interface CompatibleConditionalOnEnabledEndpoint {

/**
* The endpoint type that should be checked. Inferred when the return type of the
* {@code @Bean} method is either an {@link Endpoint @Endpoint} or an
* {@link EndpointExtension @EndpointExtension}.
*
* @return the endpoint type to check
*/
Class<?> endpoint() default Void.class;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dubbo.spring.boot.actuate.endpoint.condition;

import org.springframework.beans.BeanUtils;
import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.context.annotation.Conditional;
import org.springframework.core.type.AnnotatedTypeMetadata;
import org.springframework.util.ClassUtils;

import java.util.stream.Stream;

/**
* {@link Conditional} that checks whether or not an endpoint is enabled, which is compatible with
* org.springframework.boot.actuate.autoconfigure.endpoint.condition.OnEnabledEndpointCondition
* and org.springframework.boot.actuate.autoconfigure.endpoint.condition.OnAvailableEndpointCondition
*
* @see CompatibleConditionalOnEnabledEndpoint
* @since 2.7.7
*/
class CompatibleOnEnabledEndpointCondition implements Condition {

static String[] CONDITION_CLASS_NAMES = {
"org.springframework.boot.actuate.autoconfigure.endpoint.condition.OnAvailableEndpointCondition", // 2.2.0+
"org.springframework.boot.actuate.autoconfigure.endpoint.condition.OnEnabledEndpointCondition" // [2.0.0 , 2.2.x]
};


@Override
public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
ClassLoader classLoader = context.getClassLoader();

Condition condition = Stream.of(CONDITION_CLASS_NAMES) // Iterate class names
.filter(className -> ClassUtils.isPresent(className, classLoader)) // Search class existing or not by name
.findFirst() // Find the first candidate
.map(className -> ClassUtils.resolveClassName(className, classLoader)) // Resolve class name to Class
.filter(Condition.class::isAssignableFrom) // Accept the Condition implementation
.map(BeanUtils::instantiateClass) // Instantiate Class to be instance
.map(Condition.class::cast) // Cast the instance to be Condition one
.orElse(NegativeCondition.INSTANCE); // Or else get a negative condition

return condition.matches(context, metadata);
}

private static class NegativeCondition implements Condition {

static final NegativeCondition INSTANCE = new NegativeCondition();

@Override
public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
return false;
}
}
}
9 changes: 8 additions & 1 deletion dubbo-spring-boot-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<java.target.version>1.8</java.target.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<spring-boot.version>2.2.6.RELEASE</spring-boot.version>
<spring-boot.version>2.3.0.RELEASE</spring-boot.version>
<dubbo.version>${revision}</dubbo.version>
<!-- Build args -->
<argline>-server -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true
Expand Down Expand Up @@ -447,6 +447,13 @@
</properties>
</profile>

<profile>
<!-- Spring Boot 2.2 -->
<id>spring-boot-2.2</id>
<properties>
<spring-boot.version>2.2.7.RELEASE</spring-boot.version>
</properties>
</profile>
</profiles>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@
</dependency>

<!-- Dubbo Registry Nacos -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-registry-nacos</artifactId>
<version>2.7.6</version>
</dependency>

<dependency>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-client</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@
</dependency>

<!-- Dubbo Registry Nacos -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-registry-nacos</artifactId>
<version>2.7.6</version>
</dependency>

<dependency>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-client</artifactId>
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<properties>
<maven_javadoc_version>3.0.1</maven_javadoc_version>
<maven_surefire_version>2.19.1</maven_surefire_version>
<revision>2.7.6</revision>
<revision>2.7.7</revision>
</properties>

<modules>
Expand Down Expand Up @@ -90,8 +90,8 @@
</mailingLists>
<developers>
<developer>
<id>Apache Dubbo</id>
<name>The Apache Dubbo Project Contributors</name>
<id>Apache Dubbo </id>
<name>The Apache Dubbo Project Contributors</name>
<email>dev@dubbo.apache.org</email>
<url>http://dubbo.apache.org</url>
</developer>
Expand Down