-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
56 lines (46 loc) · 1.05 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
plugins {
application
kotlin("jvm") version "1.4.21"
id("com.github.johnrengelman.shadow") version "5.0.0"
}
group = "com.justai.jaicf"
version = "1.0.0"
val jaicf = "1.2.0"
val slf4j = "1.7.30"
val ktor = "1.5.1"
application {
mainClassName = "com.justai.jaicf.template.ServerKt"
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("org.slf4j:slf4j-simple:$slf4j")
implementation("org.slf4j:slf4j-log4j12:$slf4j")
implementation("com.just-ai.jaicf:core:$jaicf")
implementation("com.just-ai.jaicf:google-actions:$jaicf")
implementation("io.ktor:ktor-server-netty:$ktor")
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
}
tasks.withType<Jar> {
manifest {
attributes(
mapOf(
"Main-Class" to application.mainClassName
)
)
}
}
tasks.create("stage") {
dependsOn("shadowJar")
}