Compare commits

...

16 Commits

Author SHA1 Message Date
3de92f48d9
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
2022-06-13 19:50:22 +07:00
Sambo Chea
a9a52132a4
Update build.gradle.kts 2022-06-13 17:21:54 +07:00
Sambo Chea
a1180be597
Update README.md 2022-06-13 17:17:08 +07:00
Sambo Chea
4713c2736d
Merge pull request #16 from CUBETIQ/dependabot/gradle/plugin.spring-1.7.0
Bump plugin.spring from 1.6.21 to 1.7.0
2022-06-13 17:09:37 +07:00
dependabot[bot]
298497be0c
Bump plugin.spring from 1.6.21 to 1.7.0
Bumps [plugin.spring](https://github.com/JetBrains/kotlin) from 1.6.21 to 1.7.0.
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/commits)

---
updated-dependencies:
- dependency-name: plugin.spring
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-13 01:38:57 +00:00
Sambo Chea
e5eebe8d38
Merge pull request #15 from CUBETIQ/dependabot/gradle/jvm-1.7.0
Bump jvm from 1.6.21 to 1.7.0
2022-06-13 08:21:12 +07:00
Sambo Chea
bc0278687d
Merge pull request #17 from CUBETIQ/dependabot/gradle/plugin.jpa-1.7.0
Bump plugin.jpa from 1.6.21 to 1.7.0
2022-06-13 08:18:42 +07:00
dependabot[bot]
cb55113524
Bump plugin.jpa from 1.6.21 to 1.7.0
Bumps [plugin.jpa](https://github.com/JetBrains/kotlin) from 1.6.21 to 1.7.0.
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/commits)

---
updated-dependencies:
- dependency-name: plugin.jpa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-09 06:38:52 +00:00
dependabot[bot]
b2ec9c414b
Bump jvm from 1.6.21 to 1.7.0
Bumps [jvm](https://github.com/JetBrains/kotlin) from 1.6.21 to 1.7.0.
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/commits)

---
updated-dependencies:
- dependency-name: jvm
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-09 06:37:04 +00:00
Sambo Chea
3a7ba80cbe
Update README.md 2022-05-31 09:49:02 +07:00
Sambo Chea
cd488ebd3e
Merge pull request #14 from CUBETIQ/dependabot/gradle/org.springdoc-springdoc-openapi-ui-1.6.9
Bump springdoc-openapi-ui from 1.6.8 to 1.6.9
2022-05-30 14:12:52 +07:00
dependabot[bot]
a97fc7c2aa
Bump springdoc-openapi-ui from 1.6.8 to 1.6.9
Bumps [springdoc-openapi-ui](https://github.com/springdoc/springdoc-openapi) from 1.6.8 to 1.6.9.
- [Release notes](https://github.com/springdoc/springdoc-openapi/releases)
- [Changelog](https://github.com/springdoc/springdoc-openapi/blob/master/CHANGELOG.md)
- [Commits](https://github.com/springdoc/springdoc-openapi/compare/v1.6.8...v1.6.9)

---
updated-dependencies:
- dependency-name: org.springdoc:springdoc-openapi-ui
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-30 06:35:52 +00:00
Sambo Chea
df983daba8
Merge pull request #13 from CUBETIQ/dependabot/gradle/org.springframework.boot-2.7.0
Bump org.springframework.boot from 2.6.7 to 2.7.0
2022-05-20 14:30:24 +07:00
dependabot[bot]
462fe06dc2
Bump org.springframework.boot from 2.6.7 to 2.7.0
Bumps [org.springframework.boot](https://github.com/spring-projects/spring-boot) from 2.6.7 to 2.7.0.
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](https://github.com/spring-projects/spring-boot/compare/v2.6.7...v2.7.0)

---
updated-dependencies:
- dependency-name: org.springframework.boot
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-20 06:30:45 +00:00
Sambo Chea
44821a9247
Merge pull request #12 from CUBETIQ/dependabot/gradle/org.springdoc-springdoc-openapi-ui-1.6.8
Bump springdoc-openapi-ui from 1.6.7 to 1.6.8
2022-04-23 10:05:14 +07:00
dependabot[bot]
2c055b1819
Bump springdoc-openapi-ui from 1.6.7 to 1.6.8
Bumps [springdoc-openapi-ui](https://github.com/springdoc/springdoc-openapi) from 1.6.7 to 1.6.8.
- [Release notes](https://github.com/springdoc/springdoc-openapi/releases)
- [Changelog](https://github.com/springdoc/springdoc-openapi/blob/master/CHANGELOG.md)
- [Commits](https://github.com/springdoc/springdoc-openapi/compare/v1.6.7...v1.6.8)

---
updated-dependencies:
- dependency-name: org.springdoc:springdoc-openapi-ui
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-22 06:31:53 +00:00
9 changed files with 26 additions and 29 deletions

View File

@ -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:

View File

@ -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")
}

View File

@ -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",

View File

@ -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

View File

@ -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

View File

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

View File

@ -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

View File

@ -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> {

View File

@ -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