mirror of
https://github.com/Dannecron/spring-boot-demo.git
synced 2025-12-25 16:22:35 +03:00
116 lines
2.8 KiB
Plaintext
116 lines
2.8 KiB
Plaintext
plugins {
|
|
idea
|
|
alias(libs.plugins.kotlin.kover)
|
|
alias(libs.plugins.kotlin.jpa)
|
|
alias(libs.plugins.kotlin.jvm)
|
|
alias(libs.plugins.kotlin.serialization)
|
|
alias(libs.plugins.kotlin.spring)
|
|
alias(libs.plugins.spring.boot)
|
|
alias(libs.plugins.spring.dependencyManagement)
|
|
}
|
|
|
|
group = "com.github.dannecron.demo"
|
|
version = "single-version"
|
|
|
|
allprojects {
|
|
apply {
|
|
plugin(rootProject.libs.plugins.kotlin.jvm.get().pluginId)
|
|
plugin(rootProject.libs.plugins.kotlin.serialization.get().pluginId)
|
|
plugin(rootProject.libs.plugins.kotlin.kover.get().pluginId)
|
|
plugin(rootProject.libs.plugins.spring.boot.get().pluginId)
|
|
|
|
plugin("java")
|
|
}
|
|
|
|
plugins.withId("org.jetbrains.kotlinx.kover") {
|
|
tasks.named("koverXmlReport") {
|
|
dependsOn(tasks.test)
|
|
}
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
freeCompilerArgs.addAll("-Xjsr305=strict")
|
|
apiVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_1)
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
runtimeOnly(rootProject.libs.micrometer.registry.prometheus)
|
|
|
|
implementation(rootProject.libs.bundles.tracing)
|
|
implementation(rootProject.libs.kotlin.reflect)
|
|
implementation(rootProject.libs.kotlinx.serialization.json)
|
|
implementation(rootProject.libs.logback.encoder)
|
|
implementation(rootProject.libs.springFramework.aspects)
|
|
|
|
testImplementation(rootProject.libs.kotlin.test.junit)
|
|
testImplementation(rootProject.libs.mockito.kotlin)
|
|
testImplementation(rootProject.libs.springBoot.starter.test)
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
finalizedBy("koverXmlReport")
|
|
|
|
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED", "--add-opens=java.base/java.util=ALL-UNNAMED")
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
apply {
|
|
plugin(rootProject.libs.plugins.kotlin.spring.get().pluginId)
|
|
plugin(rootProject.libs.plugins.spring.boot.get().pluginId)
|
|
plugin(rootProject.libs.plugins.spring.dependencyManagement.get().pluginId)
|
|
}
|
|
|
|
tasks.bootJar {
|
|
enabled = false
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":edge-contracts"))
|
|
implementation(project(":db"))
|
|
implementation(project(":edge-producing"))
|
|
implementation(project(":edge-integration"))
|
|
implementation(project(":core"))
|
|
implementation(project(":edge-consuming"))
|
|
implementation(project(":edge-rest"))
|
|
|
|
implementation(libs.springBoot.starter.mustache)
|
|
implementation(libs.springBoot.starter.web)
|
|
|
|
developmentOnly(libs.springBoot.devtools)
|
|
|
|
kover(project(":edge-contracts"))
|
|
kover(project(":db"))
|
|
kover(project(":edge-producing"))
|
|
kover(project(":edge-integration"))
|
|
kover(project(":core"))
|
|
kover(project(":edge-consuming"))
|
|
kover(project(":edge-rest"))
|
|
}
|
|
|
|
tasks.bootJar {
|
|
enabled = true
|
|
archiveFileName.set("app.jar")
|
|
mainClass.set("com.github.dannecron.demo.DemoApplicationKt")
|
|
}
|
|
|
|
tasks.jar {
|
|
enabled = false
|
|
}
|
|
|
|
springBoot {
|
|
buildInfo()
|
|
}
|