-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
53 lines (42 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
plugins {
id("com.hivemq.extension")
id("com.github.hierynomus.license-report")
id("com.github.sgtsilvio.gradle.utf8")
id("org.asciidoctor.jvm.convert")
}
group = "com.bytechaos.mqtt"
description = "Enable MQTT 5 features for MQTT 3 Clients."
hivemqExtension {
name.set("MQTT 5 for 3")
author.set("Byte Chaos")
priority.set(1000)
startPriority.set(10000)
sdkVersion.set("${property("hivemq-extension-sdk.version")}")
}
/* ******************** resources ******************** */
val prepareAsciidoc by tasks.registering(Sync::class) {
from("README.adoc").into({ temporaryDir })
}
tasks.asciidoctor {
dependsOn(prepareAsciidoc)
sourceDir(prepareAsciidoc.map { it.destinationDir })
}
hivemqExtension.resources {
from("LICENSE")
from("README.adoc") { rename { "README.txt" } }
from(tasks.asciidoctor)
}
/* ******************** test ******************** */
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-api:${property("junit-jupiter.version")}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
/* ******************** integration test ******************** */
dependencies {
integrationTestImplementation("org.testcontainers:testcontainers:${property("testcontainers.version")}")
integrationTestImplementation("com.hivemq:hivemq-testcontainer-junit5:${property("hivemq-testcontainer.version")}")
integrationTestRuntimeOnly("ch.qos.logback:logback-classic:${property("logback.version")}")
}