75 lines
2.5 KiB
Kotlin
75 lines
2.5 KiB
Kotlin
plugins {
|
|
java
|
|
id("org.springframework.boot") version "4.0.0"
|
|
id("io.spring.dependency-management") version "1.1.7"
|
|
id("org.asciidoctor.jvm.convert") version "4.0.5"
|
|
}
|
|
|
|
group = "be.naaturel"
|
|
version = "0.0.1-SNAPSHOT"
|
|
description = "boardmate-api"
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
}
|
|
}
|
|
|
|
configurations {
|
|
compileOnly {
|
|
extendsFrom(configurations.annotationProcessor.get())
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
extra["snippetsDir"] = file("build/generated-snippets")
|
|
|
|
dependencies {
|
|
implementation("org.springframework.boot:spring-boot-security")
|
|
|
|
implementation("org.springframework.boot:spring-boot-starter-web")
|
|
implementation("org.springframework.boot:spring-boot-starter-actuator")
|
|
implementation("org.springframework.boot:spring-boot-starter-data-elasticsearch")
|
|
implementation("org.springframework.boot:spring-boot-starter-data-mongodb")
|
|
implementation("org.springframework.boot:spring-boot-starter-elasticsearch")
|
|
implementation("org.springframework.boot:spring-boot-starter-mongodb")
|
|
implementation("org.springframework.boot:spring-boot-starter-opentelemetry")
|
|
implementation("org.springframework.boot:spring-boot-starter-data-mongodb")
|
|
|
|
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0")
|
|
|
|
developmentOnly("org.springframework.boot:spring-boot-devtools")
|
|
developmentOnly("org.springframework.boot:spring-boot-docker-compose")
|
|
|
|
runtimeOnly("io.micrometer:micrometer-registry-prometheus")
|
|
|
|
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
|
|
|
|
testImplementation("org.springframework.boot:spring-boot-restdocs")
|
|
testImplementation("org.springframework.boot:spring-boot-starter-actuator-test")
|
|
testImplementation("org.springframework.boot:spring-boot-starter-data-elasticsearch-test")
|
|
testImplementation("org.springframework.boot:spring-boot-starter-data-mongodb-test")
|
|
testImplementation("org.springframework.boot:spring-boot-starter-elasticsearch-test")
|
|
testImplementation("org.springframework.boot:spring-boot-starter-mongodb-test")
|
|
testImplementation("org.springframework.boot:spring-boot-starter-opentelemetry-test")
|
|
testImplementation("org.springframework.restdocs:spring-restdocs-mockmvc")
|
|
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
|
}
|
|
|
|
tasks.withType<Test> {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
tasks.test {
|
|
outputs.dir(project.extra["snippetsDir"]!!)
|
|
}
|
|
|
|
tasks.asciidoctor {
|
|
inputs.dir(project.extra["snippetsDir"]!!)
|
|
dependsOn(tasks.test)
|
|
}
|