-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
67 lines (58 loc) · 1.22 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
plugins {
kotlin("multiplatform") version "1.4.20"
}
repositories {
mavenCentral()
// For kotlinx-datetime
maven("https://kotlin.bintray.com/kotlinx/")
}
kotlin {
macosX64("native") {
// For kotlinx-cli
compilations["main"].enableEndorsedLibs = true
binaries {
executable {
entryPoint = "com.kdnakt.kttpd.main"
}
}
}
sourceSets {
commonMain {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.1.1")
}
}
}
}
task("e2e_default_port") {
doLast {
exec {
executable("./run_test_default_port.sh")
}
}
}
task("e2e_log_level") {
doLast {
exec {
executable("./run_test_log_level.sh")
}
}
}
task("e2e_all") {
doLast {
exec {
executable("./run_test.sh")
}
}
}
task("e2etest") {
dependsOn("e2e_default_port",
"e2e_log_level",
"e2e_all")
}
tasks["build"].finalizedBy("e2etest")
tasks["nativeTestBinaries"].finalizedBy("e2etest")
tasks.withType<Wrapper> {
gradleVersion = "6.7.1"
distributionType = Wrapper.DistributionType.BIN
}