This repository has been archived by the owner on Dec 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
72 lines (57 loc) · 1.53 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
plugins {
idea
`java-library`
`maven-publish`
kotlin("jvm") version "1.3.72"
id("org.jetbrains.dokka") version "0.10.1"
id("io.gitlab.arturbosch.detekt").version("1.9.1")
}
group = "sh.weller"
version = "1.0-SNAPSHOT"
idea {
module {
isDownloadJavadoc = true
isDownloadSources = true
}
}
repositories {
mavenCentral()
jcenter()
}
val coroutinesVersion= "1.3.7"
val testContainersVersion = "1.14.3"
val slf4jVersion = "1.7.30"
dependencies {
api(kotlin("stdlib-jdk8"))
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:$coroutinesVersion")
implementation("com.hivemq:hivemq-mqtt-client:1.2.0")
implementation("org.slf4j:slf4j-api:$slf4jVersion")
implementation("org.slf4j:slf4j-simple:$slf4jVersion")
testImplementation("org.junit.jupiter:junit-jupiter:5.6.2")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesVersion")
testImplementation ("org.testcontainers:testcontainers:$testContainersVersion")
testImplementation("org.testcontainers:junit-jupiter:$testContainersVersion")
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
test {
useJUnitPlatform()
}
dokka {
outputFormat = "html"
outputDirectory = "$buildDir/dokka"
}
}
detekt {
reports {
html {
enabled = true
}
}
}