-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
50 lines (43 loc) · 1.24 KB
/
build.gradle
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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.70'
id "com.github.johnrengelman.shadow" version "5.2.0"
}
group 'org.example'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testImplementation "org.junit.jupiter:junit-jupiter:5.6.0"
implementation "io.ktor:ktor-server-netty:1.3.1"
implementation 'io.netty:netty-transport-native-epoll:4.1.48.Final:linux-x86_64'
implementation "io.ktor:ktor-websockets:1.3.1"
implementation "com.fasterxml.jackson.module:jackson-module-kotlin:2.10.+"
implementation "ch.qos.logback:logback-classic:1.2.3"
}
test {
useJUnitPlatform()
testLogging.events("passed", "skipped", "failed")
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions {
freeCompilerArgs = ["-XXLanguage:+InlineClasses"]
}
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
jar {
manifest {
attributes(
'Class-Path': configurations.compile.collect { it.getName() }.join(' '),
'Main-Class': 'com.github.hejcz.http.App'
)
}
}
// heroku stuff
task stage(dependsOn: ['shadowJar', 'clean'])
shadowJar.mustRunAfter clean