Skip to content

Commit

Permalink
Merge branch 'master' into v3.14.1
Browse files Browse the repository at this point in the history
  • Loading branch information
HzjNeverStop authored Sep 8, 2022
2 parents 0e4fa47 + f83afb7 commit 559570c
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 14 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will build and release a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Release

on:
workflow_dispatch:


jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
cache: maven
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
- name: Build with Maven
run: mvn --batch-mode deploy -DskipTests -Prelease
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2018 Ant Group Co., Ltd.
Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -198,4 +198,4 @@
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.
limitations under the License.
2 changes: 1 addition & 1 deletion README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ SOFABoot 的示例工程 [sofaboot-samples](https://github.com/sofastack-guides/
请参考 [SOFABoot 官方文档](http://www.sofastack.tech/sofa-boot/docs/Home)

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

## 八、开源许可

Expand Down
12 changes: 9 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.6.9</version>
<version>2.7.3</version>
<!-- Add this to resolve to repository -->
<relativePath />
</parent>
Expand All @@ -37,11 +37,11 @@
<description>SOFABoot Build</description>

<properties>
<revision>3.14.1</revision>
<revision>3.15.0-SNAPSHOT</revision>
<sofa.boot.version>${revision}</sofa.boot.version>
<!--maven plugin-->
<maven.staging.plugin>1.6.7</maven.staging.plugin>
<maven.gpg.pluign>1.5</maven.gpg.pluign>
<maven.gpg.pluign>1.6</maven.gpg.pluign>
<flatten-maven-plugin.version>1.2.7</flatten-maven-plugin.version>
</properties>

Expand Down Expand Up @@ -126,6 +126,12 @@
</goals>
</execution>
</executions>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class SpringContextInstallStage extends AbstractPipelineStage {
private static final int DEFAULT_REFRESH_TASK_QUEUE_SIZE = 1000;

private static final int CPU_COUNT = Runtime.getRuntime()
.availableProcessors(); ;
.availableProcessors();

private final SofaModuleProperties sofaModuleProperties;

Expand Down Expand Up @@ -156,18 +156,31 @@ private void outputModulesMessage(ApplicationRuntimeModel application)
private String getErrorMessageByApplicationModule(ApplicationRuntimeModel application) {
StringBuilder sbError = new StringBuilder(512);
if (application.getDeployRegistry().getPendingEntries().size() > 0) {
sbError.append("\n").append(ErrorCode.convert("01-12000")).append(".)").append("(")
sbError.append("\n").append(ErrorCode.convert("01-12000")).append("(")
.append(application.getDeployRegistry().getPendingEntries().size())
.append(") >>>>>>>>\n");

for (DependencyTree.Entry<String, DeploymentDescriptor> entry : application
.getDeployRegistry().getPendingEntries()) {
if (application.getAllDeployments().contains(entry.get())) {
sbError.append("[").append(entry.getKey()).append("]").append(" depends on ")
.append(entry.getWaitsFor())
.append(", but the latter can not be resolved.").append("\n");
}
}
}

for (DependencyTree.Entry<String, DeploymentDescriptor> entry : application
.getDeployRegistry().getPendingEntries()) {
if (application.getAllDeployments().contains(entry.get())) {
sbError.append("[").append(entry.getKey()).append("]").append(" depends on ")
.append(entry.getWaitsFor()).append(", but the latter can not be resolved.")
.append("\n");
if (application.getDeployRegistry().getMissingRequirements().size() > 0) {
sbError.append("Missing modules").append("(")
.append(application.getDeployRegistry().getMissingRequirements().size())
.append(") >>>>>>>>\n");

for (DependencyTree.Entry<String, DeploymentDescriptor> entry : application
.getDeployRegistry().getMissingRequirements()) {
sbError.append("[").append(entry.getKey()).append("]").append("\n");
}

sbError.append("Please add the corresponding modules.").append("\n");
}

return sbError.toString();
Expand Down

0 comments on commit 559570c

Please sign in to comment.