Skip to content

Commit

Permalink
Downgrade swagger-codegen to version prior to breaking change
Browse files Browse the repository at this point in the history
3.0.57 introduced a change in behavior which breaks many of our MVC unit tests.
See: swagger-api/swagger-codegen-generators#1295

Runtime groovy dependency caused bootRun to fail on startup.  It was previously needed for logback, but we use XML now (logback hasn't supported groovy since 2021: https://logback.qos.ch/news.html#1.2.9)

Hadoop upgrades used in tests required the exclusion of slf4j-reload4j dependency for Spring Boot tests to initialize.
  • Loading branch information
okotsopoulos committed Aug 7, 2024
1 parent 654f178 commit 059440f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath('io.swagger.codegen.v3:swagger-codegen:3.0.60')
classpath('io.swagger.codegen.v3:swagger-codegen:3.0.56')
}
}

Expand Down Expand Up @@ -59,7 +59,7 @@ allprojects {
}
dependencies {
dependency 'io.swagger.core.v3:swagger-annotations:2.2.22'
dependency 'io.swagger.codegen.v3:swagger-codegen-cli:3.0.60'
dependency 'io.swagger.codegen.v3:swagger-codegen-cli:3.0.56'
}
}
}
Expand Down Expand Up @@ -252,29 +252,28 @@ dependencies {
exclude group: 'com.sun.jersey', module: 'jersey-servlet'
exclude group: 'com.sun.jersey', module: 'jersey-json'
exclude group: 'com.sun.jersey', module: 'jersey-server'
exclude group: 'org.slf4j', module: 'slf4j-reload4j'
}
testImplementation ('org.apache.hadoop:hadoop-azure:3.4.0') {
exclude group: 'com.sun.jersey', module: 'jersey-core'
exclude group: 'com.sun.jersey', module: 'jersey-servlet'
exclude group: 'com.sun.jersey', module: 'jersey-json'
exclude group: 'com.sun.jersey', module: 'jersey-server'
exclude group: 'org.slf4j', module: 'slf4j-reload4j'
}
testImplementation('org.apache.hadoop:hadoop-mapreduce-client-core:3.4.0') {
exclude group: 'com.sun.jersey', module: 'jersey-core'
exclude group: 'com.sun.jersey', module: 'jersey-servlet'
exclude group: 'com.sun.jersey', module: 'jersey-json'
exclude group: 'com.sun.jersey', module: 'jersey-server'
exclude group: 'org.slf4j', module: 'slf4j-reload4j'
}

testImplementation 'au.com.dius.pact.provider:junit5:4.6.12'
testImplementation 'au.com.dius.pact.provider:junit5spring:4.6.12'

antlr 'org.antlr:antlr4:4.13.2'

// Need groovy on the class path for the logback config. Could use XML and skip this dependency,
// but the groovy config is... well... groovy.
runtimeOnly 'org.codehaus.groovy:groovy:3.0.22'

liquibaseRuntime 'org.liquibase:liquibase-core'
liquibaseRuntime 'org.postgresql:postgresql'
liquibaseRuntime 'info.picocli:picocli:4.7.6'
Expand Down

0 comments on commit 059440f

Please sign in to comment.