-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle.kts
61 lines (53 loc) · 1.47 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
plugins {
alias(libs.plugins.hivemq.extension)
alias(libs.plugins.defaults)
alias(libs.plugins.license)
}
group = "com.hivemq.extensions"
description = "HiveMQ 4 Hello World Extension - a simple reference for all extension developers"
hivemqExtension {
name = "Hello World Extension"
author = "HiveMQ"
priority = 1000
startPriority = 1000
mainClass = "$group.helloworld.HelloWorldMain"
sdkVersion = "$version"
resources {
from("LICENSE")
}
}
@Suppress("UnstableApiUsage")
testing {
suites {
withType<JvmTestSuite> {
useJUnitJupiter(libs.versions.junit.jupiter)
}
"test"(JvmTestSuite::class) {
dependencies {
implementation(libs.mockito)
}
}
"integrationTest"(JvmTestSuite::class) {
dependencies {
compileOnly(libs.jetbrains.annotations)
implementation(libs.hivemq.mqttClient)
implementation(libs.testcontainers.junitJupiter)
implementation(libs.testcontainers.hivemq)
runtimeOnly(libs.logback.classic)
}
}
}
}
license {
header = rootDir.resolve("HEADER")
mapping("java", "SLASHSTAR_STYLE")
}
/* ******************** debugging ******************** */
tasks.prepareHivemqHome {
hivemqHomeDirectory = file("/your/path/to/hivemq-<VERSION>")
}
tasks.runHivemqWithExtension {
debugOptions {
enabled = false
}
}