From 521ee9fddf066ab426feaefd006179e10e2543ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Skj=C3=B8lberg?= Date: Sat, 8 Mar 2025 14:01:48 +0100 Subject: [PATCH 1/2] Bump dependencies and fix module plugin --- README.md | 9 ++- pom.xml | 59 +++++++++++++------ .../skjolber/mockito/soap/module-info.java | 23 -------- src/main/java9/module-info.java | 23 ++++++++ 4 files changed, 70 insertions(+), 44 deletions(-) delete mode 100644 src/main/java/com/github/skjolber/mockito/soap/module-info.java create mode 100644 src/main/java9/module-info.java diff --git a/README.md b/README.md index e920652..5d3a206 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ The project is based on [Maven] and is available form central Maven repository. Add ```xml -2.0.0 +2.0.1 ``` and @@ -51,7 +51,7 @@ For ```groovy ext { - mockitoSoapCxfVersion = '2.0.0' + mockitoSoapCxfVersion = '2.0.1' } ``` @@ -249,8 +249,13 @@ If you see exception cause by then you're mixing CXF version 2 and 3 - see above about excluding `cxf-core` artifact. +# See also + + * [mockito-rest-spring](https://github.com/skjolber/mockito-rest-spring) for REST / GraphQL mocking. + # History + - 2.0.1: Maintenance release (bump dependencies). Thank you @RufManuel for help. - 2.0.0: Move to JDK 17 and Spring 6.x and Mockito 5.x. - 1.2.1: Maintainence release. JDK 8 (with CXF 3.x and Spring 5.3.x now live at jdk8 branch, on version 1.2.x). - 1.2.0: JUnit 5 support. diff --git a/pom.xml b/pom.xml index 49c0259..ee5119a 100644 --- a/pom.xml +++ b/pom.xml @@ -14,29 +14,29 @@ 17 4.13.2 - 5.9.2 + 5.12.0 - 5.1.1 + 5.16.0 2.2 - 2.14.0 + 2.18.0 - 4.1.0 - 6.1.14 + 4.1.1 + 6.2.3 - 1.2.13 - 1.7.32 - + 1.5.17 + 2.0.17 + 3.3.0 - 0.8.8 - 1.6.13 - 3.2.1 - 3.5.0 - 2.5.3 - 3.0.1 - 3.5.0 - 3.10.1 - 8.1.0 + 0.8.12 + 1.7.0 + 3.3.1 + 3.11.2 + 3.1.1 + 3.2.7 + 3.8.1 + 3.14.0 + 12.1.0 @@ -84,7 +84,7 @@ ${junit.version} compile true - + org.mockito mockito-core @@ -220,7 +220,7 @@ org.apache.maven.plugins maven-jar-plugin - 3.3.0 + 3.4.2 org.apache.cxf @@ -398,6 +398,27 @@ dependency-check-maven ${owasp-dependency-check.version} + + org.moditect + moditect-maven-plugin + 1.2.2.Final + + + add-module-infos + package + + add-module-info + + + ${java.module.version} + true + + src/main/java9/module-info.java + + + + + diff --git a/src/main/java/com/github/skjolber/mockito/soap/module-info.java b/src/main/java/com/github/skjolber/mockito/soap/module-info.java deleted file mode 100644 index 1e9b3ff..0000000 --- a/src/main/java/com/github/skjolber/mockito/soap/module-info.java +++ /dev/null @@ -1,23 +0,0 @@ -module com.github.skjolber.mockito.soap { - - requires junit; - requires org.junit.jupiter.api; - requires org.mockito; - - requires jakarta.xml.bind; - requires jakarta.activation; - requires jakarta.xml.ws; - - requires java.net.http; - requires java.base; - - requires org.apache.cxf.core; - requires org.apache.cxf.binding.soap; - requires org.apache.cxf.frontend.jaxws; - requires org.apache.cxf.transport.http; - requires org.apache.cxf.frontend.jaxrs; - requires org.apache.cxf.frontend.simple; - - exports com.github.skjolber.mockito.soap; - -} \ No newline at end of file diff --git a/src/main/java9/module-info.java b/src/main/java9/module-info.java new file mode 100644 index 0000000..18d37b1 --- /dev/null +++ b/src/main/java9/module-info.java @@ -0,0 +1,23 @@ +module com.github.skjolber.mockito.soap { + + requires junit; + requires org.junit.jupiter.api; + requires org.mockito; + + requires jakarta.xml.bind; + requires jakarta.activation; + requires jakarta.xml.ws; + + requires java.net.http; + requires java.base; + + requires org.apache.cxf.core; + requires org.apache.cxf.binding.soap; + requires org.apache.cxf.frontend.jaxws; + requires org.apache.cxf.transport.http; + requires org.apache.cxf.frontend.jaxrs; + requires org.apache.cxf.frontend.simple; + + exports com.github.skjolber.mockito.soap; + +} \ No newline at end of file From 13e2fdc15428e0f34a00d226e4c28b5984683758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Skj=C3=B8lberg?= Date: Sat, 8 Mar 2025 14:04:02 +0100 Subject: [PATCH 2/2] Adjust build --- .github/workflows/maven.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 0a61aab..6c728e6 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -8,16 +8,19 @@ on: branches: [ '**' ] jobs: - build-with-maven-jdk-17: + build: runs-on: ubuntu-latest + strategy: + matrix: + java: [ 17, 21] + name: Java ${{ matrix.java }} build steps: - - uses: actions/checkout@v3 - - name: Set up JDK 17 - uses: actions/setup-java@v3 - with: - java-version: 17 - distribution: 'temurin' - cache: maven - - name: Build with Maven - run: mvn -B package --file pom.xml + - uses: actions/checkout@v4 + - name: Set up Java + uses: actions/setup-java@v4 + with: + java-version: ${{ matrix.java }} + distribution: liberica + - name: Build with Maven + run: mvn -B package --file pom.xml