Skip to content

Commit a53c5d5

Browse files
committed
build with core & cleanup
1 parent b570522 commit a53c5d5

1 file changed

Lines changed: 29 additions & 20 deletions

File tree

build.gradle

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ java {
2020

2121

2222
ext {
23-
processorApiVersion = '1.0.0.M4'
23+
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,33 +65,41 @@ compileKotlin {
6465
}
6566

6667
dependencies {
67-
implementation 'org.codehaus.groovy:groovy:2.5.10'
68-
implementation 'org.codehaus.groovy:groovy-nio:2.5.10'
69-
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
70-
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.10.2'
71-
72-
implementation ('io.swagger.parser.v3:swagger-parser:2.0.19') {
73-
exclude group: 'io.swagger.parser.v3', module: 'swagger-parser-v2-converter'
74-
exclude group: 'io.swagger.core.v3', module: 'swagger-annotations'
68+
components.all(JacksonPlatformRule)
69+
components.all(KotlinPlatformRule)
70+
71+
compileOnly 'com.github.hauner.openapi:openapi-processor-api:1.0.0'
72+
implementation 'com.github.hauner.openapi:openapi-processor-core:1.0.0.M1'
73+
74+
implementation 'org.codehaus.groovy:groovy:2.5.12'
75+
implementation 'org.slf4j:slf4j-api:1.7.30'
76+
77+
testImplementation ("com.github.hauner.openapi:openapi-processor-api:$processorApiVersion")
78+
79+
testImplementation ('com.github.hauner.openapi:openapi-processor-test:1.0.0.M1') {
80+
exclude group: 'com.google.guava'
7581
}
76-
implementation 'org.openapi4j:openapi-parser:0.9'
77-
implementation 'com.google.googlejavaformat:google-java-format:1.7'
78-
compileOnly "com.github.hauner.openapi:openapi-processor-api:$processorApiVersion"
7982

80-
testImplementation 'com.google.jimfs:jimfs:1.1'
83+
testImplementation "com.fasterxml.jackson.core:jackson-core:$jacksonVersion"
84+
testImplementation "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion"
85+
86+
testImplementation("com.google.jimfs:jimfs:1.1") {
87+
exclude group: 'com.google.guava'
88+
}
89+
8190
testImplementation ('org.spockframework:spock-core:2.0-M2-groovy-2.5') {
82-
exclude group: 'org.codehaus.groovy'
91+
exclude group: 'org.codehaus.groovy' // avoid unused groovy packages
8392
}
8493
testImplementation ('org.spockframework:spock-junit4:2.0-M2-groovy-2.5') {
85-
exclude group: 'org.codehaus.groovy'
94+
exclude group: 'org.codehaus.groovy' // avoid unused groovy packages
8695
}
87-
testImplementation 'net.bytebuddy:byte-buddy:1.10.9'
96+
testImplementation 'net.bytebuddy:byte-buddy:1.10.11'
8897
testImplementation 'ch.qos.logback:logback-classic:1.2.3'
8998

90-
testIntImplementation "com.github.hauner.openapi:openapi-processor-api:$processorApiVersion"
91-
testIntImplementation 'io.github.java-diff-utils:java-diff-utils:4.5'
92-
// testIntRuntimeOnly 'org.slf4j:slf4j-simple:1.7.30'
93-
// testIntRuntimeOnly 'org.slf4j:slf4j-nop:1.6.1'
99+
constraints {
100+
testImplementation ('org.junit.platform:junit-platform-engine:1.6.2')
101+
testImplementation ('junit:junit:4.13')
102+
}
94103
}
95104

96105
tasks.withType(Test) {

0 commit comments

Comments
 (0)