Skip to content

Commit

Permalink
Merge pull request #10 from MasonM/bump-dependencies
Browse files Browse the repository at this point in the history
Bump dependencies and add dependency checker, closes #9
  • Loading branch information
MasonM authored May 7, 2022
2 parents 49809e9 + 1157c89 commit 487aa98
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ Maven:
<dependency>
<groupId>com.github.masonm</groupId>
<artifactId>wiremock-jwt-extension</artifactId>
<version>0.8</version>
<version>0.9</version>
</dependency>
```

Gradle:
```groovy
implementation 'com.github.masonm:wiremock-jwt-extension:0.8'
implementation 'com.github.masonm:wiremock-jwt-extension:0.9'
```

# Running
Expand All @@ -32,15 +32,15 @@ There are three ways of running the extension:
1. Standalone, e.g.

```sh
java -jar build/libs/wiremock-jwt-extension-0.8-standalone.jar
java -jar build/libs/wiremock-jwt-extension-0.9-standalone.jar
```

2. As an extension of the WireMock standalone JAR, e.g.

```sh
wget -nc https://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-standalone/2.27.2/wiremock-standalone-2.27.2.jar
wget -nc https://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-jre8-standalone/2.33.2/wiremock-jre8-standalone-2.33.2.jar
java \
-cp wiremock-standalone-2.27.2.jar:build/libs/wiremock-jwt-extension-0.8.jar \
-cp wiremock-jre8-standalone-2.33.2.jar:build/libs/wiremock-jwt-extension-0.9.jar \
com.github.tomakehurst.wiremock.standalone.WireMockServerRunner \
--extensions="com.github.masonm.JwtMatcherExtension,com.github.masonm.JwtStubMappingTransformer"
```
Expand Down
11 changes: 6 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ plugins {
id 'maven'
id 'signing'
id 'com.github.johnrengelman.shadow' version '2.0.3'
id "org.owasp.dependencycheck" version "7.1.0.1"
}

sourceCompatibility = 1.7
group = 'com.github.masonm'
archivesBaseName = 'wiremock-jwt-extension'
version = '0.8'
version = '0.9'

repositories {
// Canonical URLs at https://central.sonatype.org/pages/consumers.html
Expand Down Expand Up @@ -108,11 +109,11 @@ uploadArchives {
}

dependencies {
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.12.3'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.12.3'
compile group: 'commons-codec', name: 'commons-codec', version: '1.11'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.13.2'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.13.2.2'
compile group: 'commons-codec', name: 'commons-codec', version: '1.15'

shadow group: 'com.github.tomakehurst', name: 'wiremock', version: '2.27.2'
shadow group: 'com.github.tomakehurst', name: 'wiremock-jre8', version: '2.33.2'

testCompile group: 'com.google.guava', name: 'guava', version: '18.0'
testCompile group: 'junit', name: 'junit', version: '4.12'
Expand Down
2 changes: 1 addition & 1 deletion test-helpers.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

VERSION=0.8
VERSION=0.9

launchWiremock() {
echo "Launching Wiremock and setting up proxying"
Expand Down
2 changes: 1 addition & 1 deletion test-stub-transformer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

source test-helpers.sh

PROXY_BASE_URL="http://wiremock.org"
PROXY_BASE_URL="https://wiremock.org"
WIREMOCK_BASE_URL=http://localhost:8080

launchWiremock
Expand Down

0 comments on commit 487aa98

Please sign in to comment.