diff --git a/build.gradle.kts b/build.gradle.kts index bf4d9a46..2467428d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -83,11 +83,8 @@ dependencies { testImplementation("com.ninja-squad:springmockk:3.1.2") testImplementation("io.projectreactor:reactor-test") - val springdocVersion = "1.7.0" - implementation("org.springdoc:springdoc-openapi-ui:$springdocVersion") - implementation("org.springdoc:springdoc-openapi-security:$springdocVersion") - implementation("org.springdoc:springdoc-openapi-kotlin:$springdocVersion") - implementation("org.springdoc:springdoc-openapi-data-rest:$springdocVersion") + val springdocVersion = "2.3.0" + implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:$springdocVersion") val luceneVersion = "9.7.0" implementation("org.apache.lucene:lucene-core:$luceneVersion") diff --git a/src/main/kotlin/io/github/bayang/jelu/controllers/BooksController.kt b/src/main/kotlin/io/github/bayang/jelu/controllers/BooksController.kt index c5c99d97..29efac83 100644 --- a/src/main/kotlin/io/github/bayang/jelu/controllers/BooksController.kt +++ b/src/main/kotlin/io/github/bayang/jelu/controllers/BooksController.kt @@ -22,7 +22,7 @@ import io.github.bayang.jelu.service.BookService import io.swagger.v3.oas.annotations.responses.ApiResponse import jakarta.validation.Valid import mu.KotlinLogging -import org.springdoc.api.annotations.ParameterObject +import org.springdoc.core.annotations.ParameterObject import org.springframework.data.domain.Page import org.springframework.data.domain.Pageable import org.springframework.data.domain.Sort diff --git a/src/main/kotlin/io/github/bayang/jelu/controllers/ReadingEventsController.kt b/src/main/kotlin/io/github/bayang/jelu/controllers/ReadingEventsController.kt index d69543c0..2d7644c1 100644 --- a/src/main/kotlin/io/github/bayang/jelu/controllers/ReadingEventsController.kt +++ b/src/main/kotlin/io/github/bayang/jelu/controllers/ReadingEventsController.kt @@ -13,7 +13,7 @@ import io.github.bayang.jelu.service.ReadingEventService import io.swagger.v3.oas.annotations.responses.ApiResponse import jakarta.validation.Valid import mu.KotlinLogging -import org.springdoc.api.annotations.ParameterObject +import org.springdoc.core.annotations.ParameterObject import org.springframework.data.domain.Page import org.springframework.data.domain.PageRequest import org.springframework.data.domain.Pageable diff --git a/src/main/kotlin/io/github/bayang/jelu/controllers/ReviewsController.kt b/src/main/kotlin/io/github/bayang/jelu/controllers/ReviewsController.kt index 24bf0245..9e8537ce 100644 --- a/src/main/kotlin/io/github/bayang/jelu/controllers/ReviewsController.kt +++ b/src/main/kotlin/io/github/bayang/jelu/controllers/ReviewsController.kt @@ -9,7 +9,7 @@ import io.github.bayang.jelu.errors.JeluAuthenticationException import io.github.bayang.jelu.service.ReviewService import io.swagger.v3.oas.annotations.responses.ApiResponse import jakarta.validation.Valid -import org.springdoc.api.annotations.ParameterObject +import org.springdoc.core.annotations.ParameterObject import org.springframework.data.domain.Page import org.springframework.data.domain.Pageable import org.springframework.data.domain.Sort diff --git a/src/main/kotlin/io/github/bayang/jelu/controllers/UserMessagesController.kt b/src/main/kotlin/io/github/bayang/jelu/controllers/UserMessagesController.kt index 7e41486f..88b4ac1c 100644 --- a/src/main/kotlin/io/github/bayang/jelu/controllers/UserMessagesController.kt +++ b/src/main/kotlin/io/github/bayang/jelu/controllers/UserMessagesController.kt @@ -10,7 +10,7 @@ import io.github.bayang.jelu.service.UserMessageService import io.swagger.v3.oas.annotations.Hidden import jakarta.validation.Valid import mu.KotlinLogging -import org.springdoc.api.annotations.ParameterObject +import org.springdoc.core.annotations.ParameterObject import org.springframework.data.domain.Page import org.springframework.data.domain.Pageable import org.springframework.data.domain.Sort