-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
81 lines (71 loc) · 2.35 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
application
kotlin("jvm") version Versions.kotlin
id("org.jetbrains.kotlin.plugin.serialization") version Versions.kotlin
id("io.ktor.plugin") version Versions.ktor
}
group = ConfigData.baseGroup
version = ConfigData.version
application {
mainClass.set("io.ktor.server.netty.EngineMain")
val isDevelopment: Boolean = project.ext.has("development")
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
}
repositories {
mavenCentral()
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/ktor/eap") }
}
allprojects {
apply(plugin = "org.jetbrains.kotlin.jvm")
repositories {
mavenCentral()
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/ktor/eap") }
}
tasks.withType(KotlinCompile::class.java).all {
kotlinOptions.freeCompilerArgs = listOf(
"-Xuse-experimental=io.ktor.locations.KtorExperimentalLocationsAPI",
"-opt-in=kotlin.RequiresOptIn"
) + kotlinOptions.freeCompilerArgs
}
dependencies {
implementation(kotlin("stdlib"))
testImplementation(kotlin("test"))
}
tasks.test {
useJUnitPlatform()
}
}
dependencies {
implementation(project(Deps.Download.main))
implementation(project(Deps.Download.api))
implementation(project(Deps.Run.main))
implementation(project(Deps.Run.api))
implementation(project(Deps.Tester.main))
implementation(project(Deps.Tester.api))
implementation(project(Deps.Executor.main))
implementation(project(Deps.Sources.main))
implementation(project(Deps.Command.main))
implementation(project(Deps.Utils.routing))
implementation(Deps.Koin.main)
implementation(Deps.Ktor.callLogging)
implementation(Deps.Ktor.core)
implementation(Deps.Ktor.headers)
implementation(Deps.Ktor.statusPages)
implementation(Deps.Ktor.contentNegotiation)
implementation(Deps.Ktor.json)
implementation(Deps.Ktor.netty)
implementation(Deps.Logback.main)
implementation(project(Deps.Utils.main))
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "1.8"
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "1.8"
}