-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
93 lines (83 loc) · 2.27 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
89
90
91
92
93
buildscript {
repositories {
maven {
url "https://oss.sonatype.org"
}
mavenCentral()
}
}
plugins {
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.3.0'
}
repositories {
mavenLocal()
mavenCentral()
}
ext {
versions = [
wiremock : "3.9.2",
jwt : '4.4.0',
jose4j : '0.9.6',
]
}
//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 "com.auth0:auth0:2.12.0"
implementation "com.auth0:java-jwt:$versions.jwt"
implementation "com.auth0:jwks-rsa:0.22.1"
implementation "org.bitbucket.b_c:jose4j:$versions.jose4j"
implementation 'org.apache.commons:commons-lang3:3.17.0'
implementation 'commons-codec:commons-codec:1.17.1'
constraints {
implementation('com.fasterxml.jackson.core:jackson-core:2.15.0') {
because 'version 2.14.2 brought in transitively by com.auth0:[email protected] has CWE-400'
}
implementation('org.apache.commons:commons-compress:1.26.0') {
because 'version 1.24.0 brought in transitively by org.wiremock:wiremock:3.9.1 has CVE-2024-25710'
}
}
}
shadowJar {
relocate "com.github.jknack", 'wiremock.com.github.jknack'
mergeServiceFiles()
exclude 'META-INF/maven/**'
exclude 'META-INF/versions/17/**'
exclude 'META-INF/versions/21/**'
exclude 'module-info.class'
}
test {
useJUnitPlatform()
testLogging {
events "PASSED", "FAILED", "SKIPPED"
exceptionFormat "full"
}
}