Initial commit
This commit is contained in:
70
api/build.gradle.kts
Normal file
70
api/build.gradle.kts
Normal file
@@ -0,0 +1,70 @@
|
||||
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-starter-web")
|
||||
implementation("org.springframework.boot:spring-boot-security")
|
||||
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")
|
||||
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user