Skip to content

Commit

Permalink
MET-5474: Update to jdk21 build
Browse files Browse the repository at this point in the history
Upgrade wiremock com.github.tomakehurst:wiremock:2.35.1 -> org.wiremock:wiremock-standalone:3.3.1
Remove duplicate wiremock-jre8
  • Loading branch information
stzanakis committed Dec 12, 2023
1 parent c870b90 commit 4a099d0
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 44 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: push
jobs:

ci:
uses: europeana/metis-actions/.github/workflows/ci.yml@jdk17
uses: europeana/metis-actions/.github/workflows/ci.yml@jdk21
with:
sonar_organization: europeana
sonar_project_key: europeana_metis-framework
Expand All @@ -14,14 +14,14 @@ jobs:

deploy-artifacts:
needs: ci
uses: europeana/metis-actions/.github/workflows/deploy-artifacts.yml@jdk17
uses: europeana/metis-actions/.github/workflows/deploy-artifacts.yml@jdk21
secrets:
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}

docker-build_metis-authentication:
needs: ci
uses: europeana/metis-actions/.github/workflows/docker-build-push.yml@jdk17
uses: europeana/metis-actions/.github/workflows/docker-build-push.yml@jdk21
with:
docker-organization: europeana
docker-image-name: metis-authentication
Expand All @@ -31,7 +31,7 @@ jobs:
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
docker-build_metis-core:
needs: ci
uses: europeana/metis-actions/.github/workflows/docker-build-push.yml@jdk17
uses: europeana/metis-actions/.github/workflows/docker-build-push.yml@jdk21
with:
docker-organization: europeana
docker-image-name: metis-core
Expand All @@ -41,7 +41,7 @@ jobs:
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
docker-build_metis-dereference:
needs: ci
uses: europeana/metis-actions/.github/workflows/docker-build-push.yml@jdk17
uses: europeana/metis-actions/.github/workflows/docker-build-push.yml@jdk21
with:
docker-organization: europeana
docker-image-name: metis-dereference
Expand All @@ -51,7 +51,7 @@ jobs:
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
docker-build_metis-repository:
needs: ci
uses: europeana/metis-actions/.github/workflows/docker-build-push.yml@jdk17
uses: europeana/metis-actions/.github/workflows/docker-build-push.yml@jdk21
with:
docker-organization: europeana
docker-image-name: metis-repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:

jobs:
ci-release:
uses: europeana/metis-actions/.github/workflows/release.yml@jdk17
uses: europeana/metis-actions/.github/workflows/release.yml@jdk21
with:
release-version: ${{ github.event.inputs.release-version }}
commit-hash-branch: ${{ github.event.inputs.commit-hash-branch }}
Expand Down
5 changes: 2 additions & 3 deletions metis-authentication/metis-authentication-rest-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock</artifactId>
<scope>test</scope>
<groupId>org.wiremock</groupId>
<artifactId>wiremock-standalone</artifactId>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down
5 changes: 2 additions & 3 deletions metis-core/metis-core-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock</artifactId>
<scope>test</scope>
<groupId>org.wiremock</groupId>
<artifactId>wiremock-standalone</artifactId>
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
Expand Down
1 change: 0 additions & 1 deletion metis-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<version.spring.boot>2.7.5</version.spring.boot>
</properties>

<modules>
Expand Down
6 changes: 2 additions & 4 deletions metis-enrichment/metis-enrichment-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@
<artifactId>mockito-core</artifactId>
</dependency>
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-jre8</artifactId>
<version>${version.wiremock-jre}</version>
<scope>test</scope>
<groupId>org.wiremock</groupId>
<artifactId>wiremock-standalone</artifactId>
</dependency>
<dependency>
<groupId>eu.europeana.metis</groupId>
Expand Down
5 changes: 2 additions & 3 deletions metis-harvesting/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@
<version>${version.saxon.he}</version>
</dependency>
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock</artifactId>
<version>${version.com.github.tomakehurst.wiremock}</version>
<groupId>org.wiremock</groupId>
<artifactId>wiremock-standalone</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
Expand Down
12 changes: 2 additions & 10 deletions metis-media-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@
<version>${version.mpd.parser}</version>
</dependency>

<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
Expand Down Expand Up @@ -133,10 +127,8 @@
<artifactId>mockito-core</artifactId>
</dependency>
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-jre8</artifactId>
<version>${version.wiremock-jre}</version>
<scope>test</scope>
<groupId>org.wiremock</groupId>
<artifactId>wiremock-standalone</artifactId>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package eu.europeana.metis.mediaprocessing.extraction;

import static com.github.tomakehurst.wiremock.client.WireMock.aResponse;
import static com.github.tomakehurst.wiremock.client.WireMock.containing;
import static com.github.tomakehurst.wiremock.client.WireMock.get;
import static com.github.tomakehurst.wiremock.client.WireMock.urlEqualTo;
import static com.github.tomakehurst.wiremock.core.WireMockConfiguration.wireMockConfig;
Expand Down Expand Up @@ -470,7 +469,6 @@ void testParseMpdResource() throws MediaExtractionException, URISyntaxException
.thenReturn(new URI("http://127.0.0.1:" + portForWireMock + "/test-url.mpd"));

wireMockServer.stubFor(get(urlEqualTo("/test-url.mpd"))
.withHeader("Accept", containing("text"))
.willReturn(aResponse()
.withStatus(200)
.withHeader("Content-Type", "application/xml")
Expand Down
6 changes: 2 additions & 4 deletions metis-validation/metis-validation-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,9 @@
<version>${version.spring.context}</version>
</dependency>

<!-- https://mvnrepository.com/artifact/com.github.tomakehurst/wiremock -->
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock</artifactId>
<scope>test</scope>
<groupId>org.wiremock</groupId>
<artifactId>wiremock-standalone</artifactId>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
Expand Down
13 changes: 6 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>${version.maven.compiler.plugin}</version>
<configuration>
<release>17</release>
<release>21</release>
</configuration>
</plugin>
<!--Setup highest directory path, so that it can be used as a variable avoiding relative paths-->
Expand Down Expand Up @@ -132,7 +132,6 @@
<version.awaitability>1.7.0</version.awaitability>
<version.bouncycastle>1.68</version.bouncycastle>
<version.build.helper.maven.plugin>1.4</version.build.helper.maven.plugin>
<version.com.github.tomakehurst.wiremock>2.27.2</version.com.github.tomakehurst.wiremock>
<version.com.zoho.crm.java-sdk>3.0.1</version.com.zoho.crm.java-sdk>
<version.apache.commons.text>1.10.0</version.apache.commons.text>
<version.commonscompress>1.21</version.commonscompress>
Expand Down Expand Up @@ -180,7 +179,7 @@
<version.slf4j>1.7.30</version.slf4j>
<version.solr.solrj>8.8.2</version.solr.solrj>
<version.spring>5.3.7</version.spring>
<version.spring.boot>2.7.8</version.spring.boot>
<version.spring.boot>2.7.18</version.spring.boot>
<version.spring.beans>${version.spring}</version.spring.beans>
<version.spring.context>${version.spring}</version.spring.context>
<version.spring.security>5.5.0</version.spring.security>
Expand All @@ -190,7 +189,7 @@
<version.swagger>3.0.0</version.swagger>
<version.swagger.annotations>1.6.2</version.swagger.annotations>
<version.tika.core>1.26</version.tika.core>
<version.wiremock-jre>2.35.1</version.wiremock-jre>
<version.org.wiremock>3.3.1</version.org.wiremock>
<version.testcontainers>1.19.0</version.testcontainers>
<version.xerces>2.12.2</version.xerces>
<version.xmlunit.matchers>2.8.2</version.xmlunit.matchers>
Expand Down Expand Up @@ -567,9 +566,9 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock</artifactId>
<version>${version.com.github.tomakehurst.wiremock}</version>
<groupId>org.wiremock</groupId>
<artifactId>wiremock-standalone</artifactId>
<version>${version.org.wiremock}</version>
<scope>test</scope>
<exclusions>
<exclusion>
Expand Down

0 comments on commit 4a099d0

Please sign in to comment.