File tree 1 file changed +4
-13
lines changed
1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change 1
- import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2
-
3
1
plugins {
4
2
kotlin(" jvm" ) version " 1.8.20"
5
3
}
@@ -9,9 +7,7 @@ version = "1.0.0"
9
7
10
8
repositories {
11
9
mavenCentral()
12
- maven {
13
- url = uri(" https://jitpack.io" )
14
- }
10
+ maven(" https://jitpack.io" )
15
11
}
16
12
17
13
dependencies {
@@ -38,11 +34,10 @@ dependencies {
38
34
implementation(" ch.qos.logback.contrib:logback-json-classic:0.1.5" )
39
35
implementation(" ch.qos.logback.contrib:logback-jackson:0.1.5" )
40
36
37
+ // json-schema-inferrer and its dependencies with non-vulnerable versions
41
38
implementation(" com.github.saasquatch:json-schema-inferrer:0.1.5" )
42
-
43
- // CVE-2022-1471: https://github.com/FasterXML/jackson-dataformats-text/issues/361
44
- // CVE-2022-41854: ???
45
- implementation(" com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.2" )
39
+ implementation(" org.yaml:snakeyaml:2.0" )
40
+ implementation(" com.fasterxml.jackson.core:jackson-databind:2.14.2" )
46
41
47
42
// Cx78f40514-81ff: the vulnerable function is not used
48
43
@Suppress(" VulnerableLibrariesLocal" )
@@ -58,10 +53,6 @@ tasks.test {
58
53
useJUnitPlatform()
59
54
}
60
55
61
- tasks.withType<KotlinCompile > {
62
- kotlinOptions.jvmTarget = " 1.8"
63
- }
64
-
65
56
tasks.jar {
66
57
manifest {
67
58
attributes[" Main-Class" ] = " it.bennes.jsonSchemaGenerator.MainKt"
You can’t perform that action at this time.
0 commit comments