build: add bestbefore to prevent shipping deprecated code on major versions

This commit is contained in:
Gauthier Roebroeck 2023-07-21 11:42:11 +08:00
parent 466e980423
commit 7f1fded130

View file

@ -1,4 +1,3 @@
import org.apache.tools.ant.taskdefs.condition.Os
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jreleaser.model.Active
@ -18,6 +17,7 @@ plugins {
id("com.github.johnrengelman.processes") version "0.5.0"
id("org.springdoc.openapi-gradle-plugin") version "1.6.0"
id("org.jreleaser") version "1.6.0"
id("com.google.devtools.ksp") version "1.8.22-1.0.11"
jacoco
}
@ -115,6 +115,10 @@ dependencies {
implementation("org.xerial:sqlite-jdbc:3.42.0.0")
jooqGenerator("org.xerial:sqlite-jdbc:3.42.0.0")
if (version.toString().endsWith(".0.0")) {
ksp("com.github.gotson.bestbefore:bestbefore-processor-kotlin:0.1.0")
}
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude(module = "mockito-core")
}