Skip to content

Commit 559570c

Browse files
authored
Merge branch 'master' into v3.14.1
2 parents 0e4fa47 + f83afb7 commit 559570c

File tree

5 files changed

+64
-14
lines changed

5 files changed

+64
-14
lines changed

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow will build and release a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
name: Release
5+
6+
on:
7+
workflow_dispatch:
8+
9+
10+
jobs:
11+
release:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Set up JDK 8
16+
uses: actions/setup-java@v3
17+
with:
18+
java-version: '8'
19+
distribution: 'temurin'
20+
cache: maven
21+
server-id: ossrh
22+
server-username: MAVEN_USERNAME
23+
server-password: MAVEN_PASSWORD
24+
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
25+
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
26+
- name: Build with Maven
27+
run: mvn --batch-mode deploy -DskipTests -Prelease
28+
env:
29+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
30+
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
31+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2018 Ant Group Co., Ltd.
189+
Copyright [yyyy] [name of copyright owner]
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.
@@ -198,4 +198,4 @@
198198
distributed under the License is distributed on an "AS IS" BASIS,
199199
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200200
See the License for the specific language governing permissions and
201-
limitations under the License.
201+
limitations under the License.

README_ZH.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ SOFABoot 的示例工程 [sofaboot-samples](https://github.com/sofastack-guides/
7474
请参考 [SOFABoot 官方文档](http://www.sofastack.tech/sofa-boot/docs/Home)
7575

7676
### 源码解析
77-
- SOFABoot HealthCheck 机制解析
77+
- [SOFABoot HealthCheck 机制解析](https://www.sofastack.tech/projects/sofa-boot/sofaboot-healthcheck-mechanism-explained/)
7878

7979
## 八、开源许可
8080

pom.xml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<parent>
2525
<groupId>org.springframework.boot</groupId>
2626
<artifactId>spring-boot-starter-parent</artifactId>
27-
<version>2.6.9</version>
27+
<version>2.7.3</version>
2828
<!-- Add this to resolve to repository -->
2929
<relativePath />
3030
</parent>
@@ -37,11 +37,11 @@
3737
<description>SOFABoot Build</description>
3838

3939
<properties>
40-
<revision>3.14.1</revision>
40+
<revision>3.15.0-SNAPSHOT</revision>
4141
<sofa.boot.version>${revision}</sofa.boot.version>
4242
<!--maven plugin-->
4343
<maven.staging.plugin>1.6.7</maven.staging.plugin>
44-
<maven.gpg.pluign>1.5</maven.gpg.pluign>
44+
<maven.gpg.pluign>1.6</maven.gpg.pluign>
4545
<flatten-maven-plugin.version>1.2.7</flatten-maven-plugin.version>
4646
</properties>
4747

@@ -126,6 +126,12 @@
126126
</goals>
127127
</execution>
128128
</executions>
129+
<configuration>
130+
<gpgArguments>
131+
<arg>--pinentry-mode</arg>
132+
<arg>loopback</arg>
133+
</gpgArguments>
134+
</configuration>
129135
</plugin>
130136
</plugins>
131137
</build>

sofa-boot-project/sofa-boot-core/isle-sofa-boot/src/main/java/com/alipay/sofa/isle/stage/SpringContextInstallStage.java

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public class SpringContextInstallStage extends AbstractPipelineStage {
6262
private static final int DEFAULT_REFRESH_TASK_QUEUE_SIZE = 1000;
6363

6464
private static final int CPU_COUNT = Runtime.getRuntime()
65-
.availableProcessors(); ;
65+
.availableProcessors();
6666

6767
private final SofaModuleProperties sofaModuleProperties;
6868

@@ -156,18 +156,31 @@ private void outputModulesMessage(ApplicationRuntimeModel application)
156156
private String getErrorMessageByApplicationModule(ApplicationRuntimeModel application) {
157157
StringBuilder sbError = new StringBuilder(512);
158158
if (application.getDeployRegistry().getPendingEntries().size() > 0) {
159-
sbError.append("\n").append(ErrorCode.convert("01-12000")).append(".)").append("(")
159+
sbError.append("\n").append(ErrorCode.convert("01-12000")).append("(")
160160
.append(application.getDeployRegistry().getPendingEntries().size())
161161
.append(") >>>>>>>>\n");
162+
163+
for (DependencyTree.Entry<String, DeploymentDescriptor> entry : application
164+
.getDeployRegistry().getPendingEntries()) {
165+
if (application.getAllDeployments().contains(entry.get())) {
166+
sbError.append("[").append(entry.getKey()).append("]").append(" depends on ")
167+
.append(entry.getWaitsFor())
168+
.append(", but the latter can not be resolved.").append("\n");
169+
}
170+
}
162171
}
163172

164-
for (DependencyTree.Entry<String, DeploymentDescriptor> entry : application
165-
.getDeployRegistry().getPendingEntries()) {
166-
if (application.getAllDeployments().contains(entry.get())) {
167-
sbError.append("[").append(entry.getKey()).append("]").append(" depends on ")
168-
.append(entry.getWaitsFor()).append(", but the latter can not be resolved.")
169-
.append("\n");
173+
if (application.getDeployRegistry().getMissingRequirements().size() > 0) {
174+
sbError.append("Missing modules").append("(")
175+
.append(application.getDeployRegistry().getMissingRequirements().size())
176+
.append(") >>>>>>>>\n");
177+
178+
for (DependencyTree.Entry<String, DeploymentDescriptor> entry : application
179+
.getDeployRegistry().getMissingRequirements()) {
180+
sbError.append("[").append(entry.getKey()).append("]").append("\n");
170181
}
182+
183+
sbError.append("Please add the corresponding modules.").append("\n");
171184
}
172185

173186
return sbError.toString();

0 commit comments

Comments
 (0)