-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbuild.gradle.kts
59 lines (49 loc) · 1.29 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
kotlin("jvm") version "2.0.20"
application
id("com.github.ben-manes.versions") version "0.52.0"
`maven-publish`
signing
}
repositories {
mavenLocal()
mavenCentral()
maven("https://oss.sonatype.org/content/repositories/snapshots")
maven("https://s01.oss.sonatype.org/content/repositories/snapshots")
}
application {
// specify an example you want to run
mainClass = System.getProperty("mainClass") ?: "DiscoverKnxServers"
}
// specify an example we want to run
tasks.withType<JavaExec> {
@Suppress("UNCHECKED_CAST")
systemProperties(System.getProperties() as Map<String?, *>)
}
version = "3.0-SNAPSHOT"
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks.compileKotlin {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_17)
}
}
tasks.withType<JavaCompile>().configureEach {
options.encoding = "UTF-8"
options.compilerArgs.addAll(listOf(
"-Xlint:all",
"-Xlint:-options"
))
}
dependencies {
implementation("io.calimero:calimero-core:$version")
implementation("io.calimero:calimero-device:$version")
runtimeOnly("io.calimero:calimero-rxtx:$version")
runtimeOnly("io.calimero:calimero-usb:$version")
runtimeOnly("org.slf4j:slf4j-jdk-platform-logging:2.0.12")
runtimeOnly("org.slf4j:slf4j-simple:2.0.12")
}