Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
jdk: [11, 17]
jdk: [17]
runs-on: ${{ matrix.os }}
env:
JDK_VERSION: ${{ matrix.jdk }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'adopt'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
Expand Down
48 changes: 38 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,18 @@ plugins {
id 'eclipse'
id 'project-report'
id 'com.diffplug.spotless' version '6.25.0'
id 'org.wiremock.tools.gradle.wiremock-extension-convention' version '0.2.0'
id 'org.wiremock.tools.gradle.java' version '0.6.0-beta.3'
id 'org.wiremock.tools.gradle.publishing' version '0.6.0-beta.3'
}

repositories {
mavenLocal()
mavenCentral()
}

projects {
ext {
versions = [
wiremock: "3.5.2"
]
}
java {
sourceCompatibility = 17
targetCompatibility = 17
}

allprojects {
Expand Down Expand Up @@ -55,20 +53,31 @@ allprojects {
}

dependencies {
api "org.wiremock:wiremock:$versions.wiremock"
// 1.x is not maintained but we need to use to support Java 11. It is in a better state than java-faker, which is also not maintained. Bump to 2.x once we deprecate support for Java 11.
implementation 'net.datafaker:datafaker:1.9.0'
api "org.wiremock:wiremock-core:$versions.wiremock"
api 'com.github.jknack:handlebars:4.5.0'
implementation 'net.datafaker:datafaker:2.5.3'

testImplementation platform('org.junit:junit-bom:5.14.1')
testImplementation 'org.junit.jupiter:junit-jupiter-api'
testImplementation 'org.junit.jupiter:junit-jupiter-params'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter'
testRuntimeOnly 'org.junit.platform:junit-platform-engine:1.14.1'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.14.1'
testImplementation("org.wiremock:wiremock:$versions.wiremock") {
artifact {
classifier = 'tests'
}
}
testImplementation(testFixtures("org.wiremock:wiremock:$versions.wiremock"))
testImplementation("org.wiremock:wiremock-junit5:$versions.wiremock")
testImplementation('org.hamcrest:hamcrest:3.0')
}

shadowJar {
relocate "com.github.jknack", 'wiremock.com.github.jknack'
relocate "net.datafaker", 'wiremock.net.datafaker'

exclude("META-INF/versions/21/**")
}

test {
Expand All @@ -78,3 +87,22 @@ test {
exceptionFormat "full"
}
}

tasks.check {
dependsOn(buildHealth)
}

dependencyAnalysis {
issues {
all {
onAny {
severity("fail")
}
}
}
usage {
analysis {
checkSuperClasses(true)
}
}
}
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ githubRepo = wiremock-faker-extension
developer.id=Shreya-7
developer.name=Shreya Agarwal
developer.email=a.shreya202@gmail.com
wiremockVersion=4.0.0-beta.20
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sat Oct 14 16:21:37 IST 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 4 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
plugins {
id 'com.autonomousapps.build-health' version '3.5.0'
}

rootProject.name = 'wiremock-faker-extension'