Skip to content

Commit 40ea4f4

Browse files
committed
dependency cleanup
1 parent 05b1dd6 commit 40ea4f4

File tree

1 file changed

+34
-5
lines changed

1 file changed

+34
-5
lines changed

openapi-processor-core/build.gradle

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ java {
2121

2222
ext {
2323
processorApiVersion = '1.0.0'
24+
jacksonVersion = '2.11.0'
2425

2526
bintrayUser = project.hasProperty ('BINTRAY_USER') ? BINTRAY_USER : 'n/a'
2627
bintrayKey = project.hasProperty ('BINTRAY_KEY') ? BINTRAY_KEY : 'n/a'
@@ -64,10 +65,13 @@ compileKotlin {
6465
}
6566

6667
dependencies {
68+
components.all(JacksonPlatformRule)
69+
components.all(KotlinPlatformRule)
70+
6771
implementation 'org.codehaus.groovy:groovy:2.5.12'
6872
implementation 'org.codehaus.groovy:groovy-nio:2.5.12'
6973
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
70-
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.11.0'
74+
implementation "com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonVersion"
7175

7276
compileOnly "com.github.hauner.openapi:openapi-processor-api:$processorApiVersion"
7377

@@ -76,19 +80,44 @@ dependencies {
7680
exclude group: 'io.swagger.parser.v3', module: 'swagger-parser-v2-converter'
7781
exclude group: 'io.swagger.core.v3', module: 'swagger-annotations'
7882
}
79-
implementation 'com.google.googlejavaformat:google-java-format:1.8'
8083

81-
testImplementation 'com.github.hauner.openapi:openapi-processor-test:1.0.0.M1'
84+
implementation ('com.google.googlejavaformat:google-java-format:1.8') {
85+
exclude group: 'com.google.guava'
86+
}
87+
88+
implementation ('com.google.guava:guava:28.1-jre') {
89+
exclude group: 'com.google.guava'
90+
exclude group: 'com.google.j2objc'
91+
exclude group: 'com.google.code.findbugs'
92+
exclude group: 'com.google.errorprone'
93+
exclude group: 'org.checkerframework'
94+
exclude group: 'org.codehaus.mojo'
95+
}
96+
97+
testImplementation "com.github.hauner.openapi:openapi-processor-api:$processorApiVersion"
98+
testImplementation ('com.github.hauner.openapi:openapi-processor-test:1.0.0.M1') {
99+
exclude group: 'com.google.guava'
100+
}
101+
102+
testImplementation("com.google.jimfs:jimfs:1.1") {
103+
exclude group: 'com.google.guava'
104+
}
105+
106+
testImplementation ("org.junit.jupiter:junit-jupiter-api:5.6.2")
107+
testCompileOnly ("junit:junit:4.13")
108+
testRuntimeOnly ("org.junit.jupiter:junit-jupiter-engine:5.6.2")
109+
testRuntimeOnly ("org.junit.vintage:junit-vintage-engine:5.6.2")
110+
82111
testImplementation ('org.spockframework:spock-core:2.0-M2-groovy-2.5') {
83112
exclude group: 'org.codehaus.groovy'
113+
exclude group: 'junit'
84114
}
85115
testImplementation ('org.spockframework:spock-junit4:2.0-M2-groovy-2.5') {
86116
exclude group: 'org.codehaus.groovy'
117+
exclude group: 'junit'
87118
}
88119
testImplementation 'net.bytebuddy:byte-buddy:1.10.11'
89120
testImplementation 'ch.qos.logback:logback-classic:1.2.3'
90-
91-
testIntCompileOnly "com.github.hauner.openapi:openapi-processor-api:$processorApiVersion"
92121
}
93122

94123
tasks.withType(Test) {

0 commit comments

Comments
 (0)