diff --git a/build.gradle.kts b/build.gradle.kts index bfcf2a7..3707146 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,6 +1,6 @@ plugins { // Spring Boot - id("org.springframework.boot") version "3.5.3" + id("org.springframework.boot") version "3.5.6" // Spring 의존성 관리(BOM) id("io.spring.dependency-management") version "1.1.7" @@ -47,24 +47,25 @@ dependencies { implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.13") // MariaDB 드라이버 - runtimeOnly("org.mariadb.jdbc:mariadb-java-client:3.1.4") + runtimeOnly("org.mariadb.jdbc:mariadb-java-client:3.5.6") implementation("org.springframework.boot:spring-boot-starter-webflux") - implementation("org.jsoup:jsoup:1.16.1") + implementation("org.jsoup:jsoup:1.21.1") - compileOnly("org.projectlombok:lombok:1.18.38") - annotationProcessor("org.projectlombok:lombok:1.18.38") - testCompileOnly("org.projectlombok:lombok:1.18.38") - testAnnotationProcessor("org.projectlombok:lombok:1.18.38") + compileOnly("org.projectlombok:lombok:1.18.42") + annotationProcessor("org.projectlombok:lombok:1.18.42") + testCompileOnly("org.projectlombok:lombok:1.18.42") + testAnnotationProcessor("org.projectlombok:lombok:1.18.42") // 테스트 testImplementation("org.springframework.boot:spring-boot-starter-test") testImplementation("org.springframework.security:spring-security-test") - //배포시 주석 처리 해야함(sql 디버깅용) - //implementation("com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.12.0") + if (project.hasProperty("local")) { + implementation("com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.12.0") + } implementation("io.minio:minio:8.5.17") diff --git a/src/main/resources/application-local.properties b/src/main/resources/application-local.properties index fc4a53c..f4ed9d0 100644 --- a/src/main/resources/application-local.properties +++ b/src/main/resources/application-local.properties @@ -3,3 +3,7 @@ springdoc.swagger-ui.config-url=/v3/api-docs/swagger-config springdoc.swagger-ui.url=/v3/api-docs springdoc.swagger-ui.doc-expansion=none springdoc.swagger-ui.disable-swagger-default-url=true + + +spring.jpa.hibernate.ddl-auto=create-drop +spring.sql.init.mode=always diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties index 1f70e49..f9e724e 100644 --- a/src/main/resources/application-prod.properties +++ b/src/main/resources/application-prod.properties @@ -5,3 +5,5 @@ springdoc.swagger-ui.config-url=/autoflow-server-mgmt/v3/api-docs/swagger-config springdoc.swagger-ui.url=/autoflow-server-mgmt/v3/api-docs springdoc.swagger-ui.doc-expansion=none springdoc.swagger-ui.disable-swagger-default-url=true +spring.jpa.hibernate.ddl-auto=none +spring.sql.init.mode=never diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 3619011..84c34e6 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -9,9 +9,6 @@ spring.datasource.username=cuuva spring.datasource.password=cuuva spring.jpa.database-platform=org.hibernate.dialect.MariaDBDialect -spring.jpa.hibernate.ddl-auto=create-drop - -spring.sql.init.mode=always spring.jpa.defer-datasource-initialization=true