-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
59 lines (48 loc) · 1.34 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
plugins {
application
java
kotlin("jvm") version "1.3.70"
kotlin("plugin.serialization") version "1.3.70"
}
application {
mainClassName = "com.phodal.chapi.tbs.Main"
}
tasks.withType<Jar> {
manifest {
attributes["Main-Class"] = application.mainClassName
}
from(configurations.runtime.get().map {if (it.isDirectory) it else zipTree(it)})
}
allprojects {
group = "com.phodal.chapi.tbs"
version = "0.0.5"
repositories {
mavenCentral()
mavenLocal()
jcenter()
}
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.20.0")
implementation("com.phodal.chapi:chapi-domain:0.0.5")
implementation("com.phodal.chapi:chapi-application:0.0.5")
implementation("com.phodal.chapi:chapi-ast-java:0.0.5")
implementation(kotlin("stdlib-jdk8"))
implementation(kotlin("reflect"))
// Kotlin reflection.
implementation(kotlin("test"))
implementation(kotlin("test-junit"))
// JUnit 5
testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.6.0")
testRuntimeOnly("org.junit.platform:junit-platform-console:1.6.0")
}
repositories {
mavenCentral()
}
tasks.test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}