-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
75 lines (64 loc) · 2.09 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
kotlin("jvm") version "1.4.10"
kotlin("kapt") version "1.4.10"
id("java")
id("com.github.johnrengelman.shadow") version "5.0.0"
application
}
application {
mainClassName = "io.fperezp.connect.mock.ServerKt"
}
group = "io.fperezp"
version = "0.6.0"
val arrowVersion = "0.11.0"
val hopliteVersion = "1.3.8"
val ktorVersion = "1.6.0"
repositories {
mavenCentral()
jcenter()
maven {
url = uri("https://dl.bintray.com/kotlin/ktor")
}
maven {
url = uri("https://dl.bintray.com/kotlin/kotlinx")
}
maven { url = uri("https://dl.bintray.com/arrow-kt/arrow-kt/") }
maven { url = uri("https://oss.jfrog.org/artifactory/oss-snapshot-local/") } // for SNAPSHOT builds
}
dependencies {
implementation(platform("io.arrow-kt:arrow-stack:$arrowVersion"))
compile("ch.qos.logback:logback-classic:1.2.3")
testImplementation(kotlin("test-junit"))
implementation("io.ktor:ktor-server-netty:$ktorVersion")
implementation("io.ktor:ktor-jackson:$ktorVersion")
implementation("io.arrow-kt:arrow-fx")
implementation ("io.arrow-kt:arrow-syntax")
implementation("io.arrow-kt:arrow-fx-coroutines")
implementation("io.arrow-kt:arrow-fx-kotlinx-coroutines")
implementation("com.sksamuel.hoplite:hoplite-core:$hopliteVersion")
implementation("com.sksamuel.hoplite:hoplite-arrow:$hopliteVersion")
implementation("com.sksamuel.hoplite:hoplite-hocon:$hopliteVersion")
kapt ("io.arrow-kt:arrow-meta:$arrowVersion")
implementation(kotlin("stdlib-jdk8"))
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.8"
}
tasks {
named<ShadowJar>("shadowJar") {
mergeServiceFiles()
manifest {
attributes(mapOf("Main-Class" to application.mainClassName))
}
}
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "1.8"
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "1.8"
}