-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
73 lines (55 loc) · 2.12 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Kotlin application project to get you started.
*/
val ktor_version = "1.2.4"
plugins {
// Apply the Kotlin JVM plugin to add support for Kotlin.
id("org.jetbrains.kotlin.jvm") version "1.3.41"
// Apply the application plugin to add support for building a CLI application.
application
jacoco
}
repositories {
// Use jcenter for resolving dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
}
dependencies {
// Align versions of all Kotlin components
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
// Use the Kotlin JDK 8 standard library.
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.3.2")
// Use the Kotlin test library.
testImplementation("org.jetbrains.kotlin:kotlin-test")
// Use the Kotlin JUnit integration.
testImplementation("org.jetbrains.kotlin:kotlin-test-junit")
testImplementation("org.hamcrest:hamcrest:2.1")
// Logging
implementation("org.slf4j:slf4j-api:1.7.25")
implementation("ch.qos.logback:logback-classic:1.2.3")
implementation("ch.qos.logback:logback-core:1.2.3")
// Functional & reactive programming
implementation("io.vavr:vavr:0.9.3")
implementation("io.vavr:vavr-kotlin:0.10.0")
implementation("io.reactivex.rxjava2:rxjava:2.2.12")
// Serialization
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.9.7")
// Parsing
implementation("org.jparsec:jparsec:3.1")
// Web
implementation("io.ktor:ktor-server-netty:$ktor_version")
implementation("io.ktor:ktor-jackson:$ktor_version")
implementation("io.ktor:ktor-websockets:$ktor_version")
}
application {
// Define the main class for the application
mainClassName = "net.varionic.mcbinpack.AppKt"
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.8"
}