-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
96 lines (77 loc) · 2.77 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
plugins {
id("java")
kotlin("jvm") version "2.0.21"
id("application")
id("com.gradleup.shadow") version "9.0.0-beta2"
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
val exposedVersion: String by project
val slf4jVersion: String by project
dependencies {
// log
implementation("io.github.oshai:kotlin-logging-jvm:7.0.0")
implementation("ch.qos.logback:logback-classic:1.5.12")
implementation("org.slf4j:slf4j-api:$slf4jVersion")
implementation("org.slf4j:jul-to-slf4j:$slf4jVersion")
// coroutine
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1")
// command line
implementation("org.jline:jline:3.27.1")
implementation("org.jline:jline-terminal-jni:3.27.1")
implementation("org.fusesource.jansi:jansi:2.4.1")
implementation("net.java.dev.jna:jna:5.15.0")
// unit test
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
// SQL
implementation("org.jetbrains.exposed:exposed-core:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-crypt:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-dao:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-jdbc:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-java-time:$exposedVersion")
// or
implementation("org.jetbrains.exposed:exposed-kotlin-datetime:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-json:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-money:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-spring-boot-starter:$exposedVersion")
}
application {
mainClass = "com.apflu.alliancesim.debug.versions.MilestoneCommandLine"
}
tasks.test {
useJUnitPlatform()
}
tasks.jar {
manifest {
attributes(
"Main-Class" to application.mainClass
)
}
}
tasks.register<JavaExec>("bmining") {
group = "application"
description = "Basic Mining test"
classpath = sourceSets["main"].runtimeClasspath
mainClass.set("com.apflu.alliancesim.debug.versions.MilestoneBasicMining")
}
tasks.register<JavaExec>("bskill") {
group = "application"
description = "Basic Skill Training test"
classpath = sourceSets["main"].runtimeClasspath
mainClass.set("com.apflu.alliancesim.debug.versions.MilestoneBasicSkillTraining")
}
tasks.register<JavaExec>("linetest") {
standardInput = System.`in`
group = "application"
description = "Command Line test"
classpath = sourceSets["main"].runtimeClasspath
mainClass.set("com.apflu.alliancesim.debug.CommandLineTest")
}