Skip to content

Commit a1eda2e

Browse files
authored
build: avoid forcing SnakeYAML for swagger doc generation (#3308)
1 parent 8feeabd commit a1eda2e

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

build.gradle

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,16 +174,19 @@ allprojects {
174174
libs.scalaLibrary,
175175
libs.scalaReflect,
176176
libs.jacksonAnnotations,
177-
// AutoMQ inject start
178-
libs.snakeyaml,
179-
// AutoMQ inject end
180177
// be explicit about the Netty dependency version instead of relying on the version set by
181178
// ZooKeeper (potentially older and containing CVEs)
182179
libs.nettyHandler,
183180
libs.nettyTransportNativeEpoll,
184181
// be explicit about the reload4j version instead of relying on the transitive versions
185182
libs.reload4j
186183
)
184+
// AutoMQ inject start
185+
// swagger is only used for doc generation and still depends on jackson-yaml compatible with SnakeYAML 1.x.
186+
if (name != "swagger") {
187+
force(libs.snakeyaml)
188+
}
189+
// AutoMQ inject end
187190
}
188191
}
189192
}

0 commit comments

Comments
 (0)