-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
77 lines (69 loc) · 1.89 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
76
77
plugins {
alias(libs.plugins.hivemq.extension)
alias(libs.plugins.protobuf)
alias(libs.plugins.defaults)
alias(libs.plugins.oci)
alias(libs.plugins.license)
idea
}
group = "com.hivemq.extensions"
description = "HiveMQ Sparkplug Extension - an extension to monitor sparkplug data with influxdata."
hivemqExtension {
name = "HiveMQ Sparkplug Extension"
author = "HiveMQ"
sdkVersion = libs.versions.hivemq.extensionSdk
resources {
from("LICENSE")
}
}
dependencies {
implementation(libs.protobuf)
implementation(libs.dropwizard.metrics.influxdb)
implementation(libs.commonsLang)
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:" + libs.versions.protobuf.get()
}
}
oci {
registries {
dockerHub {
optionalCredentials()
}
}
}
@Suppress("UnstableApiUsage")
testing {
suites {
withType<JvmTestSuite> {
useJUnitJupiter(libs.versions.junit.jupiter)
}
"test"(JvmTestSuite::class) {
dependencies {
implementation(libs.mockito)
implementation(libs.wiremock)
runtimeOnly(libs.logback.classic)
}
}
"integrationTest"(JvmTestSuite::class) {
dependencies {
implementation(libs.testcontainers.junitJupiter)
implementation(libs.testcontainers.hivemq)
implementation(libs.gradleOci.junitJupiter)
implementation(libs.hivemq.mqttClient)
runtimeOnly(libs.logback.classic)
}
oci.of(this) {
imageDependencies {
runtime("hivemq:hivemq4:4.5.3").tag("latest")
}
}
}
}
}
license {
header = projectDir.resolve("HEADER")
mapping("java", "SLASHSTAR_STYLE")
exclude("org/eclipse/tahu/protobuf/**")
}