aboutsummaryrefslogtreecommitdiffstats
path: root/openapi/server
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2023-08-22 09:58:20 +0000
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2023-08-22 10:05:58 +0000
commita42b5abcbb1bea0b20374500a2a294f31de1927a (patch)
tree142508e32ec0caef7c87edfb5428bc2fe6164a0f /openapi/server
parent6bd5a8e1de4307a55a1129e2f2015599ef00acf3 (diff)
Migrate away from legacy gradle buildscript syntax
- replace the buildscript way of declaring plugins with the plugins {} block - have duplicate openapi client declarations since programmatic way of registering openapiGenerate task does not seem to be working Issue-ID: PORTALNG-47 Change-Id: I9e007127726e558363409d1b224dc7b2b9e52719 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'openapi/server')
-rw-r--r--openapi/server/build.gradle16
1 files changed, 14 insertions, 2 deletions
diff --git a/openapi/server/build.gradle b/openapi/server/build.gradle
index 6cdc456..017a618 100644
--- a/openapi/server/build.gradle
+++ b/openapi/server/build.gradle
@@ -1,11 +1,15 @@
plugins {
+ id 'java'
+ id 'idea'
+ id 'org.springframework.boot'
+ id 'io.spring.dependency-management'
id 'org.openapi.generator'
}
dependencies {
- implementation "org.springframework.boot:spring-boot-starter-webflux"
+ implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation "org.openapitools:openapi-generator:$openapiVersion"
- implementation "org.webjars:redoc:$redocVersion"
+ // implementation 'jakarta.validation:jakarta.validation-api:3.0.2'
constraints {
implementation('io.swagger.core.v3:swagger-annotations:2.2.5') {
@@ -55,3 +59,11 @@ idea {
generatedSourceDirs += file("$buildDir/openapi/src/main/java")
}
}
+
+bootJar {
+ enabled = false
+}
+
+jar {
+ enabled = true
+} \ No newline at end of file