Compare commits

..

No commits in common. "3de92f48d9766fec74c53b715c9959b196526faf" and "5e1ce9a0fa787c5a89a9cbfa6210752e6869eb8e" have entirely different histories.

9 changed files with 29 additions and 26 deletions

View File

@ -8,8 +8,8 @@
### Language and Framework ### Language and Framework
- Spring Boot: 2.7.0 - Spring Boot: 2.6.7
- Kotlin: 1.7.0 - Kotlin: 1.6.21
- Gradle: 7.4.1 - Gradle: 7.4.1
# Modules # Modules
@ -140,6 +140,7 @@ spring:
``` ```
- H2 (Embedded) - H2 (Embedded)
-
```yaml ```yaml
spring: spring:

View File

@ -8,8 +8,8 @@ plugins {
kotlin("plugin.jpa") kotlin("plugin.jpa")
} }
val kotlinVersion = "1.7.0" val kotlinVersion = "1.6.21"
val springBootVersion = "2.7.0" val springBootVersion = "2.6.7"
// find the last commit // find the last commit
fun getGitHashLastCommit(): String { fun getGitHashLastCommit(): String {
@ -38,7 +38,7 @@ dependencies {
implementation("org.springframework.boot:spring-boot-starter-data-redis") implementation("org.springframework.boot:spring-boot-starter-data-redis")
// Migrating from SpringFox // Migrating from SpringFox
implementation("org.springdoc:springdoc-openapi-ui:1.6.9") implementation("org.springdoc:springdoc-openapi-ui:1.6.7")
// SPRING FRAMEWORK AND CORE // SPRING FRAMEWORK AND CORE
implementation("org.springframework.boot:spring-boot-starter-web") implementation("org.springframework.boot:spring-boot-starter-web")
@ -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")
} }

View File

@ -12,13 +12,10 @@ 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",

View File

@ -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 = ["modules.uploader.enabled", "spring.datasource.enabled"], havingValue = "true") @ConditionalOnProperty(name = ["module.uploader.enabled", "spring.datasource.enabled"], havingValue = "true")
annotation class UploaderModule annotation class UploaderModule

View File

@ -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 = ["modules.user.enabled", "spring.datasource.enabled"], havingValue = "true") @ConditionalOnProperty(name = ["module.user.enabled", "spring.datasource.enabled"], havingValue = "true")
annotation class UserModule annotation class UserModule

View File

@ -1 +0,0 @@
# Custom props with dev's profile

View File

@ -28,12 +28,8 @@ 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}
data: module:
redis:
repositories:
enabled: ${DATA_REDIS_REPOSITORIES_ENABLED:false}
modules:
user: user:
enabled: ${MODULE_USER_ENABLED:true} enabled: ${MODULE_USER_ENABLED:true}
uploader: uploader:
@ -54,6 +50,6 @@ logging:
springdoc: springdoc:
api-docs: api-docs:
enabled: ${API_DOCS_ENABLED:true} enabled: true
swagger-ui: swagger-ui:
path: /swagger-ui path: /swagger-ui

View File

@ -1,16 +1,25 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins { plugins {
id("org.springframework.boot") version "2.7.0" apply false id("org.springframework.boot") version "2.6.7" apply false
id("io.spring.dependency-management") version "1.0.11.RELEASE" apply false id("io.spring.dependency-management") version "1.0.11.RELEASE" apply false
kotlin("jvm") version "1.7.0" apply false kotlin("jvm") version "1.6.21" apply false
kotlin("plugin.spring") version "1.7.0" apply false kotlin("plugin.spring") version "1.6.21" apply false
kotlin("plugin.jpa") version "1.7.0" apply false kotlin("plugin.jpa") version "1.6.21" apply false
} }
allprojects { 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 { repositories {
mavenCentral() mavenCentral()
maven("https://m.ctdn.net")
} }
group = "com.cubetiqs" group = "com.cubetiqs"
@ -20,6 +29,7 @@ allprojects {
tasks.withType<JavaCompile> { tasks.withType<JavaCompile> {
sourceCompatibility = javaVersion sourceCompatibility = javaVersion
targetCompatibility = javaVersion
} }
tasks.withType<KotlinCompile> { tasks.withType<KotlinCompile> {
@ -40,4 +50,4 @@ subprojects {
mavenBom(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES) mavenBom(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)
} }
} }
} }

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip distributionUrl=https://mirror.ctdn.net/gradle/gradle-7.4.1-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists