Skip to content

Commit

Permalink
Merge pull request #21 from DSM-PICK/18-swaager-setting
Browse files Browse the repository at this point in the history
🔀 :: (PICK-18) swaager setting
  • Loading branch information
rudeh2926 authored Jan 27, 2024
2 parents 303f89d + 056fd84 commit 51bbbed
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ dependencies {
implementation(Dependencies.MYSQL_CONNECTOR)

implementation(Dependencies.OPEN_FEIGN)

implementation(Dependencies.SWAGGER)
}

tasks.withType<KotlinCompile> {
Expand Down
5 changes: 2 additions & 3 deletions buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ object Dependencies {
// Cloud Config
const val CLOUD_CONFIG = "org.springframework.cloud:spring-cloud-config-client"

//redis
const val REDIS = "org.springframework.boot:spring-boot-starter-data-redis: ${DependencyVersions.REDIS_VERSION}"

// cloud
const val SPRING_CLOUD = "org.springframework.cloud:spring-cloud-dependencies:${DependencyVersions.SPRING_CLOUD_VERSION}"

const val SWAGGER = "org.springdoc:springdoc-openapi-ui:${DependencyVersions.SWAGGER_VERSION}"
}
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/DependencyVersions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ object DependencyVersions {
const val OPEN_FEIGN_VERSION = "3.1.4"
const val JSON_VERSION = "20200518"
const val JWT_VERSION = "0.9.1"
const val SWAGGER_VERSION = "1.6.11"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package dsm.pick2024.global.config.swagger

import io.swagger.v3.oas.models.OpenAPI
import io.swagger.v3.oas.models.info.Info
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration

@Configuration
class SwaggerConfig {
@Bean
fun openAPI(): OpenAPI {
return OpenAPI()
.info(
Info().title("PICK 2024")
.description("PICK 2024")
)
}
}

0 comments on commit 51bbbed

Please sign in to comment.