Compare commits
16 Commits
5e1ce9a0fa
...
3de92f48d9
Author | SHA1 | Date | |
---|---|---|---|
3de92f48d9 | |||
|
a9a52132a4 | ||
|
a1180be597 | ||
|
4713c2736d | ||
|
298497be0c | ||
|
e5eebe8d38 | ||
|
bc0278687d | ||
|
cb55113524 | ||
|
b2ec9c414b | ||
|
3a7ba80cbe | ||
|
cd488ebd3e | ||
|
a97fc7c2aa | ||
|
df983daba8 | ||
|
462fe06dc2 | ||
|
44821a9247 | ||
|
2c055b1819 |
@ -8,8 +8,8 @@
|
||||
|
||||
### Language and Framework
|
||||
|
||||
- Spring Boot: 2.6.7
|
||||
- Kotlin: 1.6.21
|
||||
- Spring Boot: 2.7.0
|
||||
- Kotlin: 1.7.0
|
||||
- Gradle: 7.4.1
|
||||
|
||||
# Modules
|
||||
@ -140,7 +140,6 @@ spring:
|
||||
```
|
||||
|
||||
- H2 (Embedded)
|
||||
-
|
||||
|
||||
```yaml
|
||||
spring:
|
||||
|
@ -8,8 +8,8 @@ plugins {
|
||||
kotlin("plugin.jpa")
|
||||
}
|
||||
|
||||
val kotlinVersion = "1.6.21"
|
||||
val springBootVersion = "2.6.7"
|
||||
val kotlinVersion = "1.7.0"
|
||||
val springBootVersion = "2.7.0"
|
||||
|
||||
// find the last commit
|
||||
fun getGitHashLastCommit(): String {
|
||||
@ -38,7 +38,7 @@ dependencies {
|
||||
implementation("org.springframework.boot:spring-boot-starter-data-redis")
|
||||
|
||||
// Migrating from SpringFox
|
||||
implementation("org.springdoc:springdoc-openapi-ui:1.6.7")
|
||||
implementation("org.springdoc:springdoc-openapi-ui:1.6.9")
|
||||
|
||||
// SPRING FRAMEWORK AND CORE
|
||||
implementation("org.springframework.boot:spring-boot-starter-web")
|
||||
@ -51,7 +51,7 @@ dependencies {
|
||||
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
|
||||
|
||||
runtimeOnly("com.h2database:h2")
|
||||
runtimeOnly("org.postgresql:postgresql")
|
||||
// runtimeOnly("org.postgresql:postgresql")
|
||||
|
||||
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 io.swagger.v3.oas.annotations.OpenAPIDefinition
|
||||
import io.swagger.v3.oas.annotations.servers.Server
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
|
||||
|
||||
//import org.springdoc.core.SpringDocUtils
|
||||
//import org.springdoc.core.converters.models.Pageable
|
||||
//import javax.servlet.http.HttpServletRequest
|
||||
|
||||
@ConditionalOnProperty(name = ["springdoc.api-docs.enabled"], havingValue = "true")
|
||||
@Configuration
|
||||
@SecurityScheme(
|
||||
name = "bearerAuth",
|
||||
|
@ -2,5 +2,5 @@ package com.cubetiqs.web.modules.uploader
|
||||
|
||||
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
|
@ -2,5 +2,5 @@ package com.cubetiqs.web.modules.user
|
||||
|
||||
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
|
@ -0,0 +1 @@
|
||||
# Custom props with dev's profile
|
@ -28,8 +28,12 @@ spring:
|
||||
jpa:
|
||||
hibernate:
|
||||
ddl-auto: ${JPA_HIBERNATE_DDL_AUTO:update}
|
||||
|
||||
module:
|
||||
open-in-view: ${JPA_OPEN_IN_VIEW:false}
|
||||
data:
|
||||
redis:
|
||||
repositories:
|
||||
enabled: ${DATA_REDIS_REPOSITORIES_ENABLED:false}
|
||||
modules:
|
||||
user:
|
||||
enabled: ${MODULE_USER_ENABLED:true}
|
||||
uploader:
|
||||
@ -50,6 +54,6 @@ logging:
|
||||
|
||||
springdoc:
|
||||
api-docs:
|
||||
enabled: true
|
||||
enabled: ${API_DOCS_ENABLED:true}
|
||||
swagger-ui:
|
||||
path: /swagger-ui
|
||||
|
@ -1,25 +1,16 @@
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
plugins {
|
||||
id("org.springframework.boot") version "2.6.7" apply false
|
||||
id("org.springframework.boot") version "2.7.0" apply false
|
||||
id("io.spring.dependency-management") version "1.0.11.RELEASE" apply false
|
||||
kotlin("jvm") version "1.6.21" apply false
|
||||
kotlin("plugin.spring") version "1.6.21" apply false
|
||||
kotlin("plugin.jpa") version "1.6.21" apply false
|
||||
kotlin("jvm") version "1.7.0" apply false
|
||||
kotlin("plugin.spring") version "1.7.0" apply false
|
||||
kotlin("plugin.jpa") version "1.7.0" apply false
|
||||
}
|
||||
|
||||
allprojects {
|
||||
// Fixed Zero-Day CVE-2021-44228: https://cubetiq.atlassian.net/browse/CERT-1
|
||||
// Fixed Zero-Day CVE-2021-45046: https://cubetiq.atlassian.net/browse/CERT-3
|
||||
// Fixed Zero-Day CVE-2021-45105: https://cubetiq.atlassian.net/browse/CERT-4
|
||||
ext["log4j2.version"] = "2.17.0"
|
||||
|
||||
// Fixed Zero-Day CVE-2021-42550: https://cubetiq.atlassian.net/browse/CERT-5
|
||||
ext["logback.version"] = "1.2.9"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven("https://m.ctdn.net")
|
||||
}
|
||||
|
||||
group = "com.cubetiqs"
|
||||
@ -29,7 +20,6 @@ allprojects {
|
||||
|
||||
tasks.withType<JavaCompile> {
|
||||
sourceCompatibility = javaVersion
|
||||
targetCompatibility = javaVersion
|
||||
}
|
||||
|
||||
tasks.withType<KotlinCompile> {
|
||||
@ -50,4 +40,4 @@ subprojects {
|
||||
mavenBom(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
4
gradle/wrapper/gradle-wrapper.properties
vendored
4
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,5 +1,5 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
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
|
||||
zipStorePath=wrapper/dists
|
||||
zipStorePath=wrapper/dists
|
Loading…
Reference in New Issue
Block a user