Skip to content

Commit

Permalink
fix: update wiremock to version 3, release to maven central
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkAtra committed Sep 5, 2023
1 parent 5eaa724 commit 1638c75
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 49 deletions.
39 changes: 32 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,20 @@ concurrency:
group: ci-main

permissions:
# used by cycjimmy/semantic-release-action
contents: write
issues: write
pull-requests: write
packages: write
# used by aws-actions/configure-aws-credentials
id-token: write
contents: read

jobs:
build:
name: Build & Release
runs-on: ubuntu-latest
permissions:
# used by cycjimmy/semantic-release-action
contents: write
issues: write
pull-requests: write
packages: write
# used by aws-actions/configure-aws-credentials
id-token: write
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -105,3 +107,26 @@ jobs:
@semantic-release/exec
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish-maven-central:
name: Publish to Maven Central
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: 'maven'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD

- name: Publish package
run: mvn -B -ntp -Ppublish-ossrh clean deploy -DskipTests
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
34 changes: 0 additions & 34 deletions .github/workflows/publish-maven-central.yml

This file was deleted.

4 changes: 2 additions & 2 deletions feign-aws-sigv4-sdkv1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@

<!-- Wiremock -->
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-jre8</artifactId>
<groupId>org.wiremock</groupId>
<artifactId>wiremock</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions feign-aws-sigv4-sdkv2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@

<!-- Wiremock -->
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-jre8</artifactId>
<groupId>org.wiremock</groupId>
<artifactId>wiremock</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
7 changes: 3 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<awssdk-v2.version>2.20.140</awssdk-v2.version>
<feign.version>12.5</feign.version>
<assertj.version>3.24.2</assertj.version>
<wiremock.version>2.35.0</wiremock.version>
<wiremock.version>3.0.1</wiremock.version>

<maven-surefire-plugin.version>3.1.2</maven-surefire-plugin.version>
<maven-failsafe-plugin.version>3.1.2</maven-failsafe-plugin.version>
Expand Down Expand Up @@ -128,10 +128,9 @@

<!-- Wiremock -->
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-jre8</artifactId>
<groupId>org.wiremock</groupId>
<artifactId>wiremock</artifactId>
<version>${wiremock.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement>
Expand Down

0 comments on commit 1638c75

Please sign in to comment.