mirror of
https://github.com/2martens/tsw-timetable.git
synced 2026-10-19 00:46:50 +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
50 lines
1.4 KiB
Kotlin
50 lines
1.4 KiB
Kotlin
import org.gradle.accessors.dm.LibrariesForLibs
|
|
|
|
plugins {
|
|
id("twomartens.spring-boot-application")
|
|
id("twomartens.spring-boot-cloud-base")
|
|
}
|
|
|
|
val libs = the<LibrariesForLibs>()
|
|
|
|
dependencies {
|
|
implementation(libs.bundles.spring.boot.server)
|
|
implementation(libs.spring.openapi)
|
|
|
|
implementation(libs.httpclient)
|
|
implementation(libs.prometheus)
|
|
}
|
|
|
|
sourceSets {
|
|
create("server-test") {
|
|
java {
|
|
compileClasspath += sourceSets.main.get().output + sourceSets.test.get().output
|
|
runtimeClasspath += sourceSets.main.get().output + sourceSets.test.get().output
|
|
setSrcDirs(listOf("src/server-test"))
|
|
}
|
|
}
|
|
}
|
|
|
|
idea {
|
|
module {
|
|
testSources.from(sourceSets["server-test"].java.srcDirs)
|
|
}
|
|
}
|
|
|
|
val serverTestImplementation: Configuration by configurations.getting {
|
|
extendsFrom(configurations["testImplementation"])
|
|
}
|
|
|
|
tasks.register<Test>("serverTest") {
|
|
outputs.upToDateWhen { false }
|
|
systemProperty("junit.jupiter.execution.parallel.enabled", true)
|
|
systemProperty("junit.jupiter.execution.parallel.mode.default", "concurrent")
|
|
systemProperty("junit.jupiter.execution.parallel.mode.classes.default", "concurrent")
|
|
useJUnitPlatform()
|
|
maxHeapSize = "4g"
|
|
group = "verification"
|
|
workingDir = rootProject.projectDir
|
|
testClassesDirs = sourceSets["server-test"].output.classesDirs
|
|
classpath = sourceSets["server-test"].runtimeClasspath
|
|
}
|