diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 96ef44f..ff673ab 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v5 - uses: aboutbits/github-actions-java/setup-with-maven@v4 with: - java-version: 21 + java-version: 25 - name: Test env: GITHUB_USER_NAME: ${{ github.actor }} diff --git a/.github/workflows/maven-settings.xml b/.github/workflows/maven-settings.xml index df833df..ea453f2 100644 --- a/.github/workflows/maven-settings.xml +++ b/.github/workflows/maven-settings.xml @@ -20,6 +20,16 @@ https://maven.pkg.github.com/aboutbits/* + + + central + https://repo1.maven.org/maven2 + + + github + https://maven.pkg.github.com/aboutbits/* + + diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a2b0643..4976449 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,7 +19,7 @@ jobs: - uses: aboutbits/github-actions-base/git-setup@v2 - uses: aboutbits/github-actions-java/setup-with-maven@v4 with: - java-version: 21 + java-version: 25 - uses: aboutbits/github-actions-java/set-version-with-maven@v4 with: version: "${{ github.event.inputs.version }}" diff --git a/.idea/checkstyle-idea.xml b/.idea/checkstyle-idea.xml index 05f5e1f..ccbbf46 100644 --- a/.idea/checkstyle-idea.xml +++ b/.idea/checkstyle-idea.xml @@ -5,22 +5,21 @@ JavaOnlyWithTests - \ No newline at end of file + diff --git a/.idea/misc.xml b/.idea/misc.xml index ef964bb..c99aa5a 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -8,7 +8,7 @@ - + \ No newline at end of file diff --git a/checkstyle-suppressions.xml b/checkstyle-suppressions.xml deleted file mode 100644 index 15eaff5..0000000 --- a/checkstyle-suppressions.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - diff --git a/checkstyle.xml b/checkstyle.xml deleted file mode 100644 index 8621aa5..0000000 --- a/checkstyle.xml +++ /dev/null @@ -1,207 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pom.xml b/pom.xml index 66ce10a..98feacf 100644 --- a/pom.xml +++ b/pom.xml @@ -9,8 +9,8 @@ Mapstruct extensions like custom naming strategies. - 21 - 1.5.5.Final + 25 + 1.6.3 @@ -31,7 +31,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.11.0 + 3.14.1 ${java.version} ${java.version} @@ -40,12 +40,10 @@ org.apache.maven.plugins maven-checkstyle-plugin - 3.2.1 + 3.6.0 checkstyle.xml - - checkstyle-suppressions.xml - + checkstyle-suppressions.xml true true true @@ -64,7 +62,12 @@ com.puppycrawl.tools checkstyle - 10.3.4 + 12.3.0 + + + it.aboutbits + java-checkstyle-config + 1.1.0 diff --git a/src/main/java/it/aboutbits/mapstruct/spi/CustomAccessorNamingStrategy.java b/src/main/java/it/aboutbits/mapstruct/spi/CustomAccessorNamingStrategy.java index 3dbf587..9446cac 100644 --- a/src/main/java/it/aboutbits/mapstruct/spi/CustomAccessorNamingStrategy.java +++ b/src/main/java/it/aboutbits/mapstruct/spi/CustomAccessorNamingStrategy.java @@ -12,7 +12,7 @@ protected boolean isFluentSetter(ExecutableElement method) { } protected boolean isWitherMethod(ExecutableElement method) { - String methodName = method.getSimpleName().toString(); + var methodName = method.getSimpleName().toString(); return methodName.length() > 4 && methodName.startsWith("with") && Character.isUpperCase(methodName.charAt(4)); } }