Skip to content

Instantly share code, notes, and snippets.

@lbenedetto
lbenedetto / build.gradle
Last active August 28, 2023 13:35
Stuff to add to your build.gradle in order to rewrite the bytecode of your dependencies to use jakarta
buildscript {
dependencies {
classpath group: "org.ow2.asm", name: "asm-commons", version: "9.4"
}
}
allprojects {
configurations.all {
resolutionStrategy {
dependencySubstitution {
@lbenedetto
lbenedetto / CallbacksApiDocsConfiguration.java
Last active June 9, 2022 12:32
Fix for servlets in SpringDoc to have custom servlet context paths
/**
* One of these per servlet
*/
@Component
public class CallbacksApiDocsConfiguration extends CommonApiDocsConfiguration {
public CallbacksApiDocsConfiguration(SwaggerUiConfigProperties swaggerUiConfig,
SpringDocConfigProperties springDocConfigProperties,
SwaggerUiConfigParameters swaggerUiConfigParameters,
SpringWebProvider springWebProvider) {