mirror of
https://github.com/2martens/tsw-timetable.git
synced 2026-10-17 16:06:51 +02:00
The station search implementation only works via DB and is very slow. For a simple query, the answer takes about 1s or longer. That is 100 times slower than it should be. For now, however, this solution is adequate to achieve a first prototype that includes the core functionality. feat: Add station search
18 lines
523 B
Kotlin
18 lines
523 B
Kotlin
import java.nio.file.Files
|
|
|
|
plugins {
|
|
id("twomartens.base")
|
|
}
|
|
|
|
apply(plugin="com.netflix.nebula.release")
|
|
|
|
tasks.register("writeVersionProperties") {
|
|
group = "version"
|
|
mustRunAfter("release")
|
|
outputs.file("${layout.buildDirectory.get().asFile}/version.properties")
|
|
val directory = layout.buildDirectory.get().asFile
|
|
doLast {
|
|
Files.createDirectories(directory.toPath())
|
|
File("${layout.buildDirectory.get().asFile}/version.properties").writeText("VERSION=${project.version}\n")
|
|
}
|
|
} |