Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
b6410f4
2.8.x适配JAVAEE9 JAKARTA依赖
chengyouling Mar 10, 2025
6da86a6
增加License
chengyouling Mar 10, 2025
dd6cffb
ModelConverters替换成ModelConvertersAdapterJakarta
chengyouling Apr 12, 2025
2ac45cf
maven pom中配置的编译版本改为 JDK21
chengyouling Apr 23, 2025
ff90b9d
升级spotbug版本适配JDK21
chengyouling Apr 23, 2025
df2633b
修复AuthHeaderLoader在spotbugs升级后的报错
chengyouling Apr 23, 2025
2a933d8
InetAddress不再支持mocked测试
chengyouling Apr 23, 2025
9434472
spotbugs忽略CT_CONSTRUCTOR_THROW错误
chengyouling Apr 23, 2025
8847af3
KeyStoreUtilTest兼容JDK21
chengyouling Apr 23, 2025
3fab614
upgrade mockito for JDK21 and delete mockito-inline dependency
chengyouling Apr 23, 2025
c156ea8
add spotbugs exclude matcher for swagger utils
chengyouling Apr 23, 2025
0c54ae9
fix UT mock failure
chengyouling Apr 23, 2025
52f287d
add spotbugs exclude matcher for DiscoveryManager and RegistrationMan…
chengyouling Apr 23, 2025
8f4c556
add JVM options for UT
chengyouling Apr 23, 2025
5d7c88d
revert
chengyouling Apr 23, 2025
aa6ff45
fixed UT message
chengyouling Apr 23, 2025
26b4e9d
UT avoid duplicate spy action
chengyouling Apr 23, 2025
42e04a3
sealed class cannot be mocked, use real instance
chengyouling Apr 23, 2025
b82d606
fix UT, maybe jackson default behavior is changed
chengyouling Apr 23, 2025
fc3fde9
Spring upgrade to 6.2.5
chengyouling Apr 23, 2025
9469a7e
vertx upgrade to 4.5.13
chengyouling Apr 23, 2025
0fb60a7
modify branch version to 2.10.0-SNAPSHOT
chengyouling Apr 23, 2025
4f3ed9f
修复CI格式问题
chengyouling Apr 24, 2025
14f668e
fixed JDK17 UT test
chengyouling Apr 24, 2025
831a184
调整为private修饰解决spotbugs问题
chengyouling Apr 24, 2025
98dce3f
修复checkstyle问题
chengyouling Apr 24, 2025
b7ae1c0
ProducerOperationFilterTest测试用例兼容jdk17、21
chengyouling Apr 24, 2025
a69a77e
修改PojoClient属性为私有解决spotbugs问题
chengyouling Apr 24, 2025
fda0b6d
修复checkstyle问题
chengyouling Apr 24, 2025
75c307b
修复spotbugs问题
chengyouling Apr 24, 2025
9c4c695
修改checkstyle问题
chengyouling Apr 24, 2025
7e93c94
修复spotbugs问题
chengyouling Apr 24, 2025
2daef3e
修复pojo CI测试失败问题
chengyouling Apr 24, 2025
da6fa43
revert
chengyouling Apr 24, 2025
a14664e
change to jre-21
chengyouling Apr 25, 2025
953c26d
change to using openjdk:17-alpine
chengyouling Apr 25, 2025
d7b28f1
修复jdk17测试用例异常
chengyouling Apr 25, 2025
4f9dbee
调整docker-config修复CI问题
chengyouling Apr 25, 2025
7820c1a
修复jaxrs测试用例异常问题
chengyouling Apr 25, 2025
638b2c3
change to openjdk21
chengyouling Apr 25, 2025
1bab5f2
修改jdk镜像名称
chengyouling Apr 25, 2025
532584f
升级jacoco及maven插件版本尝试解决Error while instrumenting sun/security/ec/ECDSA…
chengyouling Apr 25, 2025
c3beaa4
调整pom依赖
chengyouling Apr 25, 2025
a31e0d9
回退flushbuffer方法解决响应返回空问题
chengyouling Apr 27, 2025
c05407b
修复UT测试中增加body后buffer值变化
chengyouling Apr 27, 2025
510dd76
修复使用logback启动失败问题
chengyouling Apr 27, 2025
71ad008
注销Http Dispatcher请求
chengyouling Apr 27, 2025
bdd3d52
修复漏改的javax.annotation.Nonnull、javax.annotation.Nullable
chengyouling Apr 28, 2025
7e0f3e2
add license description
chengyouling May 7, 2025
18767ec
调整日志级别输出异常信息
chengyouling May 8, 2025
c760fa8
修复xml测试用例异常问题
chengyouling May 12, 2025
73ffcff
修改setAddrCheckInit方法的修饰符仅当前包可见
chengyouling May 12, 2025
4ca49b6
恢复TestSpringmvcConsumerResponseMapper测试用例
chengyouling May 12, 2025
ea05dc5
统一测试版本
chengyouling May 13, 2025
3da9d51
edge compatibility http dispatcher router scenario
chengyouling May 19, 2025
df7ed42
Adjusting jaxb-runtime dependency
chengyouling May 23, 2025
a23181a
rollback dependencies
chengyouling May 23, 2025
fd302a5
rollback jaxb-runtime dependencyManagement
chengyouling May 23, 2025
fab19c8
增加testNetworkInterface测试用例
chengyouling May 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/checkstyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name: checkstyle
on:
pull_request:
branches:
- 2.8.x
- 2.9.x

jobs:
checkstyle:
Expand All @@ -32,7 +32,7 @@ jobs:
- name: Set up jdk
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: checkstyle
run: mvn -B -Pit install -DskipTests -Dspotbugs.skip=true checkstyle:check
6 changes: 3 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ name: Java CI with Maven

on:
push:
branches: [ 2.8.x ]
branches: [ 2.9.x ]
pull_request:
branches: [ 2.8.x ]
branches: [ 2.9.x ]

jobs:
build:
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Set up jdk
uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '21'
distribution: 'temurin'
- name: Set up Maven
uses: stCarolas/setup-maven@v4.5
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/rat_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ name: rat check
on:
push:
branches:
- 2.8.x
- 2.9.x
pull_request:
branches:
- 2.8.x
- 2.9.x

jobs:
rat_check:
Expand All @@ -35,7 +35,7 @@ jobs:
- name: Set up jdk
uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '21'
distribution: 'temurin'
- name: rat check
run: mvn apache-rat:check -B -Pit,distribution
4 changes: 2 additions & 2 deletions .github/workflows/spotbugs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name: spot bugs
on:
pull_request:
branches:
- 2.8.x
- 2.9.x

jobs:
spotbugs:
Expand All @@ -32,7 +32,7 @@ jobs:
- name: Set up jdk
uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '21'
distribution: 'temurin'
- name: spotbugs
run: mvn -B -Pit -DskipTests clean verify spotbugs:spotbugs
2 changes: 1 addition & 1 deletion .github/workflows/unit-test-jdk17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ name: Unit Test Jdk17
on:
pull_request:
branches:
- 2.8.x
- 2.9.x

jobs:
unit-tests:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
# under the License.
#

name: Unit Test Jdk11
name: Unit Test Jdk21

on:
pull_request:
branches:
- 2.8.x
- 2.9.x

jobs:
unit-tests:
Expand All @@ -33,7 +33,7 @@ jobs:
- name: Set up jdk
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '21'
distribution: 'temurin'
- name: Compilation and Installation
run: mvn -B -Dcheckstyle.skip -Dspotbugs.skip=true clean test
run: mvn -B -Dcheckstyle.skip -Dspotbugs.skip=true clean install -Pit
13 changes: 12 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -244,4 +244,15 @@ For foundations/foundation-protobuf/src/main/java/io/protostuff/runtime/ArrayFie
foundations/foundation-protobuf/src/main/java/io/protostuff/SchemaWriter.java
================================================================
This product bundles files from protostuff which is licensed under the Apache License v2.
For details, see https://github.com/protostuff/protostuff
For details, see https://github.com/protostuff/protostuff

================================================================
For swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/jakarta/AbstractModelConverterAdapterJakarta.java
swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/jakarta/JAXBAnnotationsHelperAdapterJakarta.java
swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/jakarta/ModelConvertersAdapterJakarta.java
swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/jakarta/ModelResolverAdapterJakarta.java
swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/jakarta/ParameterProcessorAdapterJakarta.java
swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/jakarta/SwaggerAnnotationIntrospectorAdapterJakarta.java
================================================================
This product bundles files from swagger which is licensed under the Apache License v2.
For details, see https://github.com/swagger-api/swagger-core
2 changes: 1 addition & 1 deletion archetypes/business-service-jaxrs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.servicecomb</groupId>
<artifactId>archetypes</artifactId>
<version>2.9.0-SNAPSHOT</version>
<version>2.10.0-SNAPSHOT</version>
</parent>

<groupId>org.apache.servicecomb.archetypes</groupId>
Expand Down
2 changes: 1 addition & 1 deletion archetypes/business-service-pojo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.servicecomb</groupId>
<artifactId>archetypes</artifactId>
<version>2.9.0-SNAPSHOT</version>
<version>2.10.0-SNAPSHOT</version>
</parent>

<groupId>org.apache.servicecomb.archetypes</groupId>
Expand Down
2 changes: 1 addition & 1 deletion archetypes/business-service-spring-boot2-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.servicecomb</groupId>
<artifactId>archetypes</artifactId>
<version>2.9.0-SNAPSHOT</version>
<version>2.10.0-SNAPSHOT</version>
</parent>

<groupId>org.apache.servicecomb.archetypes</groupId>
Expand Down
2 changes: 1 addition & 1 deletion archetypes/business-service-springmvc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.servicecomb</groupId>
<artifactId>archetypes</artifactId>
<version>2.9.0-SNAPSHOT</version>
<version>2.10.0-SNAPSHOT</version>
</parent>

<groupId>org.apache.servicecomb.archetypes</groupId>
Expand Down
2 changes: 1 addition & 1 deletion archetypes/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.apache.servicecomb</groupId>
<artifactId>java-chassis-parent</artifactId>
<version>2.9.0-SNAPSHOT</version>
<version>2.10.0-SNAPSHOT</version>
<relativePath>../parents/default</relativePath>
</parent>

Expand Down
32 changes: 32 additions & 0 deletions ci/spotbugs/exclude.xml
Original file line number Diff line number Diff line change
Expand Up @@ -260,4 +260,36 @@
<Bug pattern="VA_FORMAT_STRING_USES_NEWLINE"/>
</Match>

<Match>
<Bug pattern="CT_CONSTRUCTOR_THROW"/>
</Match>

<Match>
<Bug pattern="NP_BOOLEAN_RETURN_NULL"/>
<Class name="org.apache.servicecomb.swagger.jakarta.AbstractModelConverterAdapterJakarta"/>
</Match>
<Match>
<Class name="org.apache.servicecomb.swagger.jakarta.ModelConvertersAdapterJakarta"/>
<Or>
<Bug pattern="NP_LOAD_OF_KNOWN_NULL_VALUE"/>
<Bug pattern="SING_SINGLETON_HAS_NONPRIVATE_CONSTRUCTOR"/>
</Or>
</Match>
<Match>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE"/>
<Class name="org.apache.servicecomb.swagger.jakarta.ModelResolverAdapterJakarta"/>
</Match>
<Match>
<Bug pattern="NP_BOOLEAN_RETURN_NULL"/>
<Class name="org.apache.servicecomb.swagger.jakarta.SwaggerAnnotationIntrospectorAdapterJakarta"/>
</Match>

<Match>
<Bug pattern="PA_PUBLIC_PRIMITIVE_ATTRIBUTE"/>
<Or>
<Class name="org.apache.servicecomb.registry.DiscoveryManager"/>
<Class name="org.apache.servicecomb.registry.RegistrationManager"/>
</Or>
</Match>

</FindBugsFilter>
2 changes: 1 addition & 1 deletion clients/config-center-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<artifactId>clients</artifactId>
<groupId>org.apache.servicecomb</groupId>
<version>2.9.0-SNAPSHOT</version>
<version>2.10.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion clients/config-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<artifactId>clients</artifactId>
<groupId>org.apache.servicecomb</groupId>
<version>2.9.0-SNAPSHOT</version>
<version>2.10.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion clients/config-kie-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<artifactId>clients</artifactId>
<groupId>org.apache.servicecomb</groupId>
<version>2.9.0-SNAPSHOT</version>
<version>2.10.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion clients/dashboard-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<artifactId>clients</artifactId>
<groupId>org.apache.servicecomb</groupId>
<version>2.9.0-SNAPSHOT</version>
<version>2.10.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion clients/http-client-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<artifactId>clients</artifactId>
<groupId>org.apache.servicecomb</groupId>
<version>2.9.0-SNAPSHOT</version>
<version>2.10.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion clients/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.servicecomb</groupId>
<artifactId>java-chassis-parent</artifactId>
<version>2.9.0-SNAPSHOT</version>
<version>2.10.0-SNAPSHOT</version>
<relativePath>../parents/default</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion clients/service-center-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<artifactId>clients</artifactId>
<groupId>org.apache.servicecomb</groupId>
<version>2.9.0-SNAPSHOT</version>
<version>2.10.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion common/common-access-log/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<artifactId>common</artifactId>
<groupId>org.apache.servicecomb</groupId>
<version>2.9.0-SNAPSHOT</version>
<version>2.10.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion common/common-protobuf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.apache.servicecomb</groupId>
<artifactId>common</artifactId>
<version>2.9.0-SNAPSHOT</version>
<version>2.10.0-SNAPSHOT</version>
</parent>
<artifactId>common-protobuf</artifactId>
<name>Java Chassis::Common::Protobuf</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import java.util.Map;
import java.util.Map.Entry;

import javax.ws.rs.core.Response.Status;
import javax.ws.rs.core.Response.Status.Family;
import jakarta.ws.rs.core.Response.Status;
import jakarta.ws.rs.core.Response.Status.Family;

import org.apache.servicecomb.codec.protobuf.utils.ScopedProtobufSchemaManager;
import org.apache.servicecomb.core.Invocation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.util.Map;
import java.util.Objects;

import javax.ws.rs.core.Response.Status;
import jakarta.ws.rs.core.Response.Status;

import org.apache.servicecomb.codec.protobuf.utils.ScopedProtobufSchemaManager;
import org.apache.servicecomb.core.Invocation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import java.util.HashMap;
import java.util.Map;

import javax.ws.rs.core.Response.Status;
import jakarta.ws.rs.core.Response.Status;

import org.apache.servicecomb.swagger.invocation.context.HttpStatus;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
import java.util.Map.Entry;
import java.util.Set;

import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response.Status;
import jakarta.ws.rs.core.MediaType;
import jakarta.ws.rs.core.Response.Status;

import org.apache.commons.lang3.StringUtils;
import org.apache.servicecomb.foundation.protobuf.internal.ProtoConst;
Expand Down
7 changes: 1 addition & 6 deletions common/common-rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.servicecomb</groupId>
<artifactId>common</artifactId>
<version>2.9.0-SNAPSHOT</version>
<version>2.10.0-SNAPSHOT</version>
</parent>

<artifactId>common-rest</artifactId>
Expand Down Expand Up @@ -65,10 +65,5 @@
<artifactId>swagger-generator-jaxrs</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
import java.util.Map;
import java.util.concurrent.CompletableFuture;

import javax.ws.rs.core.HttpHeaders;
import javax.ws.rs.core.Response.Status;
import jakarta.ws.rs.core.HttpHeaders;
import jakarta.ws.rs.core.Response.Status;

import org.apache.commons.lang3.StringUtils;
import org.apache.servicecomb.common.rest.codec.produce.ProduceProcessor;
Expand Down Expand Up @@ -322,7 +322,7 @@ protected void sendResponse(Response response) {
RestServerCodecFilter.copyHeadersToHttpResponse(response.getHeaders(), responseEx);

if (!(response.getResult() instanceof ServerWebSocket)) {
responseEx.setStatus(response.getStatusCode(), response.getReasonPhrase());
responseEx.setStatus(response.getStatusCode());
}
responseEx.setAttribute(RestConst.INVOCATION_HANDLER_RESPONSE, response);
responseEx.setAttribute(RestConst.INVOCATION_HANDLER_PROCESSOR, produceProcessor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
*/
package org.apache.servicecomb.common.rest;

import static javax.ws.rs.core.Response.Status.NOT_ACCEPTABLE;
import static javax.ws.rs.core.Response.Status.NOT_FOUND;
import static jakarta.ws.rs.core.Response.Status.NOT_ACCEPTABLE;
import static jakarta.ws.rs.core.Response.Status.NOT_FOUND;
import static org.apache.servicecomb.core.exception.ExceptionCodes.GENERIC_CLIENT;
import static org.apache.servicecomb.core.exception.ExceptionCodes.NOT_DEFINED_ANY_SCHEMA;

import java.util.Map;
import java.util.concurrent.CompletableFuture;

import javax.annotation.Nonnull;
import javax.ws.rs.core.HttpHeaders;
import jakarta.annotation.Nonnull;
import jakarta.ws.rs.core.HttpHeaders;

import org.apache.commons.lang3.StringUtils;
import org.apache.servicecomb.common.rest.codec.produce.ProduceProcessor;
Expand Down
Loading
Loading