implementation project(':openapi:client-preferences')
implementation project(':openapi:client-keycloak')
implementation project(':lib')
-
+
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation "net.logstash.logback:logstash-logback-encoder:$logbackVersion"
compileOnly "org.projectlombok:lombok:$lombokVersion"
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
+ annotationProcessor "org.projectlombok:lombok-mapstruct-binding:$lombokMapStructBindingVersion"
testCompileOnly "org.projectlombok:lombok:$lombokVersion"
testAnnotationProcessor "org.projectlombok:lombok:$lombokVersion"
}
tasks.withType(JavaCompile) {
dependsOn 'spotlessApply'
-}
\ No newline at end of file
+}
*/
WireMock.stubFor(
WireMock.post(
- WireMock.urlMatching(
- String.format("/realms/%s/protocol/openid-connect/token", realm)))
+ WireMock.urlMatching("/realms/%s/protocol/openid-connect/token".formatted(realm)))
.withRequestBody(
WireMock.containing("grant_type=urn:ietf:params:oauth:grant-type:uma-ticket"))
.willReturn(
WireMock.stubFor(
WireMock.post(
- WireMock.urlMatching(
- String.format("/realms/%s/protocol/openid-connect/token", realm)))
+ WireMock.urlMatching("/realms/%s/protocol/openid-connect/token".formatted(realm)))
.withRequestBody(
WireMock.containing("grant_type=urn:ietf:params:oauth:grant-type:uma-ticket"))
.willReturn(
WireMock.stubFor(
WireMock.post(
- WireMock.urlMatching(
- String.format("/realms/%s/protocol/openid-connect/token", realm)))
+ WireMock.urlMatching("/realms/%s/protocol/openid-connect/token".formatted(realm)))
.withRequestBody(
WireMock.containing("grant_type=urn:ietf:params:oauth:grant-type:uma-ticket"))
.willReturn(
WireMock.stubFor(
WireMock.post(
- WireMock.urlMatching(
- String.format("/realms/%s/protocol/openid-connect/token", realm)))
+ WireMock.urlMatching("/realms/%s/protocol/openid-connect/token".formatted(realm)))
.withRequestBody(
WireMock.containing("grant_type=urn:ietf:params:oauth:grant-type:uma-ticket"))
.willReturn(
logbackVersion = '7.4'
lombokVersion = '1.18.36'
swaggerV3Version = '2.2.21'
+ lombokMapStructBindingVersion = '0.2.0'
// app
wiremockVersion = '4.0.4'
implementation "org.mapstruct:mapstruct:$mapStructVersion"
implementation "org.mapstruct.extensions.spring:mapstruct-spring-annotations:$mapStructExtensionsVersion"
implementation "org.mapstruct.extensions.spring:mapstruct-spring-extensions:$mapStructExtensionsVersion"
- implementation "io.swagger.core.v3:swagger-annotations:$swaggerV3Version"
implementation 'io.micrometer:micrometer-tracing'
implementation 'io.micrometer:micrometer-tracing-bridge-otel'
compileOnly "org.projectlombok:lombok:$lombokVersion"
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
+ annotationProcessor "org.projectlombok:lombok-mapstruct-binding:$lombokMapStructBindingVersion"
testCompileOnly "org.projectlombok:lombok:$lombokVersion"
testAnnotationProcessor "org.projectlombok:lombok:$lombokVersion"
}
}
return versionProperties
}
+tasks.withType(Test).configureEach {
+ useJUnitPlatform()
+}
basic ->
basic
.disable()
- .formLogin(login -> login.disable().csrf(csrf -> csrf.disable().cors())))
+ .formLogin(
+ login -> login.disable().csrf(csrf -> csrf.disable().cors(withDefaults()))))
.authorizeExchange(
exchange ->
exchange
// Extract service name and version from BasePath
String urlBasePathPrefix =
- String.format("%s/admin/realms/%s", bffConfig.getKeycloakUrl(), bffConfig.getRealm());
+ "%s/admin/realms/%s".formatted(bffConfig.getKeycloakUrl(), bffConfig.getRealm());
return apiConstructor.apply(apiClient.setBasePath(urlBasePathPrefix));
}
ext {
openapiVersion = '7.4.0'
springBootVersion = '3.2.3'
+}
+tasks.withType(Test).configureEach {
+ useJUnitPlatform()
}
\ No newline at end of file
generatedSourceDirs += file("$buildDir/openapi/src/main/java")
}
}
+tasks.withType(Test).configureEach {
+ useJUnitPlatform()
+}
module {
generatedSourceDirs += file("$buildDir/openapi/src/main/java")
}
+}
+tasks.withType(Test).configureEach {
+ useJUnitPlatform()
}
\ No newline at end of file
generatedSourceDirs += file("$buildDir/openapi/src/main/java")
}
}
+tasks.withType(Test).configureEach {
+ useJUnitPlatform()
+}
module {
generatedSourceDirs += file("$buildDir/openapi/src/main/java")
}
+}
+tasks.withType(Test).configureEach {
+ useJUnitPlatform()
}
\ No newline at end of file
// https://docs.gradle.org/current/userguide/plugins.html#sec:plugin_version_management
plugins {
id 'io.spring.dependency-management' version '1.1.7'
- id 'org.springframework.boot' version '3.3.3'
+ id 'org.springframework.boot' version '3.3.10'
id 'org.openapi.generator' version '7.4.0'
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'com.gorylenko.gradle-git-properties' version '2.4.1'