-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
80 lines (72 loc) · 1.76 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
buildscript {
repositories {
maven {
url "https://oss.sonatype.org"
}
mavenCentral()
}
}
plugins {
id 'idea'
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'
}
repositories {
mavenLocal()
mavenCentral()
}
projects {
ext {
versions = [
wiremock: "3.5.2"
]
}
}
allprojects {
apply plugin: 'com.diffplug.spotless'
spotless {
java {
target 'src/**/*.java'
googleJavaFormat('1.17.0')
ratchetFrom 'origin/main'
trimTrailingWhitespace()
endWithNewline()
targetExclude '**/Tmp*.java'
}
groovyGradle {
target '**/*.gradle'
greclipse()
indentWithSpaces(2)
trimTrailingWhitespace()
endWithNewline()
}
json {
target 'src/**/*.json'
targetExclude '**/tmp*.json', 'src/test/resources/sample.json', 'src/main/resources/swagger/*.json', 'src/test/resources/filesource/subdir/deepfile.json', 'src/test/resources/schema-validation/*.json'
simple().indentWithSpaces(2)
}
}
}
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'
testImplementation("org.wiremock:wiremock:$versions.wiremock") {
artifact {
classifier = 'tests'
}
}
}
shadowJar {
relocate "com.github.jknack", 'wiremock.com.github.jknack'
relocate "net.datafaker", 'wiremock.net.datafaker'
}
test {
useJUnitPlatform()
testLogging {
events "PASSED", "FAILED", "SKIPPED"
exceptionFormat "full"
}
}