-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
88 lines (78 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
81
82
83
84
85
86
87
88
buildscript {
repositories {
maven {
url "https://oss.sonatype.org"
}
mavenCentral()
}
}
plugins {
id 'java'
id 'idea'
id 'eclipse'
id 'project-report'
id 'com.diffplug.spotless' version '6.21.0'
id 'org.wiremock.tools.gradle.wiremock-extension-convention' version '0.1.2'
}
repositories {
mavenLocal()
mavenCentral()
}
shadowJar {
archiveBaseName.set('wiremock-faker-extension')
archiveVersion.set('2.0')
archiveClassifier.set('')
}
projects {
ext {
versions = [
wiremock: "3.3.1"
]
}
}
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"
implementation 'net.datafaker:datafaker:1.7.0'
implementation 'com.github.jknack:handlebars:4.2.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"
}
}