diff --git a/.editorconfig b/.editorconfig index ea3e22160..1e1d0bf1b 100644 --- a/.editorconfig +++ b/.editorconfig @@ -4,22 +4,28 @@ root = true charset = utf-8 end_of_line = lf insert_final_newline = true -tab_width = 4 -indent_size = 4 -ij_continuation_indent_size = 8 + +tab_width = 2 +indent_size = 2 +ij_continuation_indent_size = 4 indent_style = space trim_trailing_whitespace = true -[*.xml] -indent_style = tab +ij_any_blank_lines_after_imports = 2 +ij_markdown_wrap_text_if_long = false -[*.{yml,yaml}] -indent_size = 2 -ij_continuation_indent_size = 4 [*.{java,kt}] -ij_java_wrap_long_lines = false +indent_size = 4 +ij_continuation_indent_size = 8 + [*.{md,mkd,markdown}] +indent_size = 4 +ij_continuation_indent_size = 8 trim_trailing_whitespace = false -ij_markdown_wrap_text_if_long = false + + +[*.xml] +indent_style = tab + diff --git a/.github/workflows/strong_ci.yaml b/.github/workflows/strong_ci.yaml index f01ddf6db..decbce4ac 100644 --- a/.github/workflows/strong_ci.yaml +++ b/.github/workflows/strong_ci.yaml @@ -34,10 +34,9 @@ jobs: run: rm -rf $HOME/.m2/repository/com/alibaba/{transmittable-thread-local,ttl}* - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 - with: - name: codecov-umbrella - token: ${{ secrets.CODECOV_TOKEN }} + uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} # https://remarkablemark.org/blog/2017/10/12/check-git-dirty/ - name: Check git dirty diff --git a/pom.xml b/pom.xml index e1b0de78d..392bb5e55 100644 --- a/pom.xml +++ b/pom.xml @@ -1,5 +1,5 @@ + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 com.alibaba.ttl3 @@ -28,8 +28,8 @@ https://github.com/alibaba/transmittable-thread-local - https://github.com/alibaba/transmittable-thread-local/issues GitHub Issues + https://github.com/alibaba/transmittable-thread-local/issues GitHub Actions @@ -79,13 +79,13 @@ https://alibaba.github.io/transmittable-thread-local/apidocs/${project.version} - 4.8.1 + 4.8.3 3.0.2 24.1.0 - 1.9.21 + 1.9.22 ${maven.compiler.source} - 1.7.3 + 1.8.0 1.9.10 8 @@ -93,7 +93,7 @@ 2.0.7 - 5.10.1 + 5.10.2 5.8.0 net.bytebuddy byte-buddy-parent - 1.14.10 + 1.14.12 pom import @@ -255,7 +255,7 @@ org.javassist javassist - 3.29.2-GA + 3.30.2-GA true @@ -402,9 +402,6 @@ - maven-enforcer-plugin @@ -415,6 +412,7 @@ + 3.3.9 @@ -441,11 +439,11 @@ maven-compiler-plugin - 3.11.0 + 3.12.1 maven-surefire-plugin - 3.2.2 + 3.2.5 maven-jar-plugin @@ -453,7 +451,7 @@ maven-shade-plugin - 3.5.1 + 3.5.2 true @@ -467,7 +465,7 @@ maven-javadoc-plugin - 3.6.2 + 3.6.3 org.jetbrains.dokka @@ -514,7 +512,7 @@ com.github.spotbugs spotbugs-maven-plugin - 4.8.1.0 + 4.8.3.1 org.jacoco @@ -528,7 +526,7 @@ --> org.codehaus.mojo exec-maven-plugin - 3.1.1 + 3.2.0 ${java.home}/bin/java test @@ -552,21 +550,10 @@ nexus-staging-maven-plugin 1.6.13 - - - org.codehaus.mojo - versions-maven-plugin - 2.16.2 - - file://${maven.multiModuleProjectDirectory}/src/versions-rules.xml - false - - + gen-src @@ -607,10 +594,10 @@ About package-list vs.element-list - Can't link to JDK10 in Javadoc comments - https://stackoverflow.com/a/49498219/922688 + https://stackoverflow.com/a/49498219/922688 - Missing javadoc/package-list for release 5.1 - https://github.com/gradle/gradle/issues/8183 - https://github.com/gradle/gradle/commit/5e88351dd456a5252d21f3a7ad25bff1b62a2fd2 + https://github.com/gradle/gradle/issues/8183 + https://github.com/gradle/gradle/commit/5e88351dd456a5252d21f3a7ad25bff1b62a2fd2 Using the linkoffline Option @@ -625,7 +612,6 @@ maven-javadoc-plugin diff --git a/src/versions-rules.xml b/src/versions-rules.xml deleted file mode 100644 index b28039372..000000000 --- a/src/versions-rules.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - .*-[Aa]lpha([-.]?\d+)? - - .*-[Bb]eta([-.]?\d+)? - (?i).*-eap-\d+ - - .*-M\d+(-.*)? - - (?i).*-rc(-?\d+(-.*)?)? - - (?i).*-dev-?\d+(-.*)? - .*(-does)?-not-exist - - - - - - .*-native-.* - - - - diff --git a/ttl-bom/pom.xml b/ttl-bom/pom.xml index d3bccfd2f..33331f213 100644 --- a/ttl-bom/pom.xml +++ b/ttl-bom/pom.xml @@ -100,7 +100,7 @@ maven-javadoc-plugin - 3.6.2 + 3.6.3 maven-deploy-plugin diff --git a/ttl-core/src/main/java/com/alibaba/ttl3/internal/util/ConcurrentReferenceHashMap.java b/ttl-core/src/main/java/com/alibaba/ttl3/internal/util/ConcurrentReferenceHashMap.java index 184a3798a..f0ef7ed9d 100644 --- a/ttl-core/src/main/java/com/alibaba/ttl3/internal/util/ConcurrentReferenceHashMap.java +++ b/ttl-core/src/main/java/com/alibaba/ttl3/internal/util/ConcurrentReferenceHashMap.java @@ -73,7 +73,9 @@ * @author Juergen Hoeller */ @SuppressWarnings("ALL") -@SuppressFBWarnings("ALL") +// Is there a class annotation in FindBugs to ignore all warning in a file +// https://stackoverflow.com/questions/13398685 +@SuppressFBWarnings class ConcurrentReferenceHashMap extends AbstractMap implements ConcurrentMap { private static final int DEFAULT_INITIAL_CAPACITY = 16; diff --git a/ttl-integrations/sample-ttl-agent-extension-transformlet/pom.xml b/ttl-integrations/sample-ttl-agent-extension-transformlet/pom.xml index 56e789cfd..731192f7f 100644 --- a/ttl-integrations/sample-ttl-agent-extension-transformlet/pom.xml +++ b/ttl-integrations/sample-ttl-agent-extension-transformlet/pom.xml @@ -38,7 +38,7 @@ maven-surefire-plugin - 3.2.2 + 3.2.5 maven-source-plugin @@ -46,7 +46,7 @@ maven-javadoc-plugin - 3.6.2 + 3.6.3 maven-deploy-plugin