-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathbuild.gradle.kts
53 lines (43 loc) · 1.16 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
plugins {
application
kotlin("jvm") version "1.4.21"
id("com.justai.jaicf.jaicp-build-plugin") version "0.1.1"
}
group = "com.justai.jaicf"
version = "1.0.0"
val jaicf = "1.2.2"
val logback = "1.2.3"
// Main class to run application on heroku. Either JaicpPollerKt, or JaicpServerKt. Will propagate to .jar main class.
application {
mainClassName = "com.justai.jaicf.template.connections.JaicpServerKt"
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven("https://jitpack.io")
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("ch.qos.logback:logback-classic:$logback")
implementation("com.just-ai.jaicf:core:$jaicf")
implementation("com.just-ai.jaicf:jaicp:$jaicf")
implementation("com.just-ai.jaicf:caila:$jaicf")
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
shadowJar {
archiveFileName.set("app.jar")
}
}
tasks.create("stage") {
dependsOn("shadowJar")
}
tasks.withType<com.justai.jaicf.plugins.jaicp.build.JaicpBuild> {
mainClassName.set(application.mainClassName)
}