Updated and upgraded deps and config the props for openapi docs and modified for spring web modules
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a9a52132a4
commit
3de92f48d9
@ -8,8 +8,8 @@ plugins {
|
|||||||
kotlin("plugin.jpa")
|
kotlin("plugin.jpa")
|
||||||
}
|
}
|
||||||
|
|
||||||
val kotlinVersion = "1.6.21"
|
val kotlinVersion = "1.7.0"
|
||||||
val springBootVersion = "2.6.7"
|
val springBootVersion = "2.7.0"
|
||||||
|
|
||||||
// find the last commit
|
// find the last commit
|
||||||
fun getGitHashLastCommit(): String {
|
fun getGitHashLastCommit(): String {
|
||||||
@ -51,7 +51,7 @@ dependencies {
|
|||||||
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
|
||||||
|
|
||||||
runtimeOnly("com.h2database:h2")
|
runtimeOnly("com.h2database:h2")
|
||||||
runtimeOnly("org.postgresql:postgresql")
|
// runtimeOnly("org.postgresql:postgresql")
|
||||||
|
|
||||||
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
||||||
}
|
}
|
||||||
|
@ -12,10 +12,13 @@ import org.springframework.context.annotation.Bean
|
|||||||
import org.springframework.context.annotation.Configuration
|
import org.springframework.context.annotation.Configuration
|
||||||
import io.swagger.v3.oas.annotations.OpenAPIDefinition
|
import io.swagger.v3.oas.annotations.OpenAPIDefinition
|
||||||
import io.swagger.v3.oas.annotations.servers.Server
|
import io.swagger.v3.oas.annotations.servers.Server
|
||||||
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
|
||||||
|
|
||||||
//import org.springdoc.core.SpringDocUtils
|
//import org.springdoc.core.SpringDocUtils
|
||||||
//import org.springdoc.core.converters.models.Pageable
|
//import org.springdoc.core.converters.models.Pageable
|
||||||
//import javax.servlet.http.HttpServletRequest
|
//import javax.servlet.http.HttpServletRequest
|
||||||
|
|
||||||
|
@ConditionalOnProperty(name = ["springdoc.api-docs.enabled"], havingValue = "true")
|
||||||
@Configuration
|
@Configuration
|
||||||
@SecurityScheme(
|
@SecurityScheme(
|
||||||
name = "bearerAuth",
|
name = "bearerAuth",
|
||||||
|
@ -2,5 +2,5 @@ package com.cubetiqs.web.modules.uploader
|
|||||||
|
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
|
||||||
|
|
||||||
@ConditionalOnProperty(name = ["module.uploader.enabled", "spring.datasource.enabled"], havingValue = "true")
|
@ConditionalOnProperty(name = ["modules.uploader.enabled", "spring.datasource.enabled"], havingValue = "true")
|
||||||
annotation class UploaderModule
|
annotation class UploaderModule
|
@ -2,5 +2,5 @@ package com.cubetiqs.web.modules.user
|
|||||||
|
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
|
||||||
|
|
||||||
@ConditionalOnProperty(name = ["module.user.enabled", "spring.datasource.enabled"], havingValue = "true")
|
@ConditionalOnProperty(name = ["modules.user.enabled", "spring.datasource.enabled"], havingValue = "true")
|
||||||
annotation class UserModule
|
annotation class UserModule
|
@ -0,0 +1 @@
|
|||||||
|
# Custom props with dev's profile
|
@ -28,8 +28,12 @@ spring:
|
|||||||
jpa:
|
jpa:
|
||||||
hibernate:
|
hibernate:
|
||||||
ddl-auto: ${JPA_HIBERNATE_DDL_AUTO:update}
|
ddl-auto: ${JPA_HIBERNATE_DDL_AUTO:update}
|
||||||
|
open-in-view: ${JPA_OPEN_IN_VIEW:false}
|
||||||
module:
|
data:
|
||||||
|
redis:
|
||||||
|
repositories:
|
||||||
|
enabled: ${DATA_REDIS_REPOSITORIES_ENABLED:false}
|
||||||
|
modules:
|
||||||
user:
|
user:
|
||||||
enabled: ${MODULE_USER_ENABLED:true}
|
enabled: ${MODULE_USER_ENABLED:true}
|
||||||
uploader:
|
uploader:
|
||||||
@ -50,6 +54,6 @@ logging:
|
|||||||
|
|
||||||
springdoc:
|
springdoc:
|
||||||
api-docs:
|
api-docs:
|
||||||
enabled: true
|
enabled: ${API_DOCS_ENABLED:true}
|
||||||
swagger-ui:
|
swagger-ui:
|
||||||
path: /swagger-ui
|
path: /swagger-ui
|
||||||
|
@ -20,7 +20,6 @@ allprojects {
|
|||||||
|
|
||||||
tasks.withType<JavaCompile> {
|
tasks.withType<JavaCompile> {
|
||||||
sourceCompatibility = javaVersion
|
sourceCompatibility = javaVersion
|
||||||
targetCompatibility = javaVersion
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<KotlinCompile> {
|
tasks.withType<KotlinCompile> {
|
||||||
|
4
gradle/wrapper/gradle-wrapper.properties
vendored
4
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https://mirror.ctdn.net/gradle/gradle-7.4.1-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
Loading…
Reference in New Issue
Block a user