-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
41 lines (35 loc) · 1.24 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
import org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper
plugins {
kotlin("jvm")
java
application
id("com.github.johnrengelman.shadow") version "7.1.0"
}
group = "org.com.runetopic"
version = "1.0-SNAPSHOT"
dependencies {
implementation("com.runetopic.api:api:1.2.+")
implementation("io.ktor:ktor-server-core:1.6.7")
implementation("io.ktor:ktor-server-netty:1.6.7")
implementation("io.insert-koin:koin-core:3.1.4")
implementation("io.insert-koin:koin-ktor:3.1.4")
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.6.0")
}
application {
mainClass.set("com.runetopic.ApplicationKt")
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=true")
}
plugins.withType<KotlinPluginWrapper> {
java.sourceCompatibility = JavaVersion.VERSION_17
java.targetCompatibility = JavaVersion.VERSION_17
tasks {
compileKotlin {
kotlinOptions.jvmTarget = JavaVersion.VERSION_17.majorVersion
kotlinOptions.freeCompilerArgs = listOf("-Xopt-in=kotlin.RequiresOptIn")
}
compileTestKotlin {
kotlinOptions.jvmTarget = JavaVersion.VERSION_17.majorVersion
kotlinOptions.freeCompilerArgs = listOf("-Xopt-in=kotlin.RequiresOptIn")
}
}
}