Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added backend-webflux/README.md
Empty file.
Empty file added backend-webmvc/README.md
Empty file.
Empty file added common/README.md
Empty file.
23 changes: 13 additions & 10 deletions common/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
repositories {
mavenCentral()
gradlePluginPortal()
}

plugins {
id("com.saveourtool.template.build.kotlin-mpp-with-jvm-configuration")
alias(libs.plugins.kotlin.multiplatform)
}

kotlin {
jvm()

sourceSets {
commonMain {
dependencies {
implementation(libs.kotlinx.serialization.core)
}
}
jvm {

}
}
}

tasks.withType<Test> {
useJUnitPlatform()
}
Empty file added frontend/README.md
Empty file.
2 changes: 1 addition & 1 deletion frontend/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import com.saveourtool.template.build.kotlinw

plugins {
kotlin("multiplatform")
alias(libs.plugins.kotlin.multiplatform)
}

kotlin {
Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ spring-boot = "3.2.3"
springdoc = "2.3.0"

[plugins]
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }

[libraries]
kotlin-spring-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-allopen", version.ref = "kotlin" }
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,21 @@ plugins {
id("org.springframework.boot")
}

configureKotlinCompile()

@Suppress("GENERIC_VARIABLE_WRONG_DECLARATION")
val libs = the<LibrariesForLibs>()
dependencies {
implementation(project.dependencies.enforcedPlatform(libs.spring.boot.dependencies))
}

configureKotlinCompile()

kotlin {
allOpen {
annotation("javax.persistence.Entity")
annotation("org.springframework.stereotype.Service")
}
}

tasks.withType<Test> {
useJUnitPlatform()
}
38 changes: 15 additions & 23 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,46 +4,38 @@ import org.ajoberstar.reckon.gradle.ReckonExtension

rootProject.name = "app-cloud-template"

dependencyResolutionManagement {
// ==== gradle configuration =============
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")

// ==== dependencies =====================
pluginManagement {
repositories {
mavenCentral()
gradlePluginPortal()
}
}

pluginManagement {
dependencyResolutionManagement {
repositories {
mavenCentral()
gradlePluginPortal()
}
}

plugins {
id("com.gradle.enterprise") version "3.15.1"
id("org.ajoberstar.reckon.settings") version "0.18.3"
}

includeBuild("gradle/plugins")
include("common")
include("backend-webmvc")
include("backend-webflux")
include("frontend")

enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")

gradleEnterprise {
@Suppress("AVOID_NULL_CHECKS")
if (System.getenv("CI") != null) {
buildScan {
publishAlways()
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
}
}
}

// ==== automated configuration of version =
extensions.configure<ReckonExtension> {
setDefaultInferredScope(Scope.PATCH)
stages("beta", "rc", Reckoner.FINAL_STAGE)
setScopeCalc(calcScopeFromProp().or(calcScopeFromCommitMessages()))
setStageCalc(calcStageFromProp())
}

// ==== subprojects ========================
includeBuild("gradle/plugins")
include("common")
include("backend-webmvc")
include("backend-webflux")
include("frontend")