Skip to content

Commit

Permalink
build: add bestbefore to prevent shipping deprecated code on major ve…
Browse files Browse the repository at this point in the history
…rsions
  • Loading branch information
gotson committed Jul 21, 2023
1 parent 466e980 commit 7f1fded
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion komga/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import org.apache.tools.ant.taskdefs.condition.Os
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jreleaser.model.Active
Expand All @@ -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
}
Expand Down Expand Up @@ -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")
}
Expand Down

0 comments on commit 7f1fded

Please sign in to comment.