-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
42 lines (35 loc) · 1.26 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import org.springframework.boot.gradle.tasks.bundling.BootJar
import org.springframework.boot.gradle.tasks.run.BootRun
plugins {
java
alias(libs.plugins.spring.boot)
alias(libs.plugins.spring.dependencyManagement)
alias(libs.plugins.lombok)
}
dependencies {
implementation(
fileTree("$rootDir/submit").matching { include("*.jar") }
.takeIf { !it.isEmpty } ?: project(":sustc-api")
)
runtimeOnly("org.postgresql:postgresql")
implementation("com.opencsv:opencsv:5.8")
implementation("commons-io:commons-io:2.15.0")
implementation("org.furyio:fury-core:0.3.1")
implementation(platform("org.springframework.shell:spring-shell-dependencies:2.1.13"))
implementation("org.springframework.shell:spring-shell-starter")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
}
tasks.withType<JavaExec> {
standardInput = System.`in`
}
tasks.register("benchmark") {
group = "application"
description = "Run the benchmark script"
tasks.getByName<BootRun>("bootRun")
.apply { args("--spring.profiles.active=benchmark") }
.let { finalizedBy(it) }
}
tasks.withType<BootJar> {
archiveFileName = "sustc-runner.jar"
destinationDirectory = File("$rootDir/run")
}