-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
47 lines (41 loc) · 1.06 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
43
44
45
46
47
plugins {
application
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.kotlinx.serialization)
alias(libs.plugins.spotless)
}
group = "org.jcma"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation(libs.bundles.arrow)
implementation(libs.bundles.google)
implementation(libs.bundles.ktor.client)
implementation(libs.bundles.ktor.server)
implementation(libs.bundles.tegral)
implementation(libs.ktor.http)
implementation(libs.ktor.utils)
implementation(libs.logback)
testImplementation("org.jetbrains.kotlin:kotlin-test")
}
spotless {
kotlin {
target("**/*.kt")
ktfmt().googleStyle().configure { it.setRemoveUnusedImport(true) }
}
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(17)
}
task<JavaExec>("sharing-scores") {
dependsOn("compileKotlin")
group = "Execution"
description = "Runs the Sharing Scores server"
classpath = sourceSets.main.get().runtimeClasspath
mainClass.set("org.jcma.sharingscores.SharingScoresServer")
}