-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
58 lines (47 loc) · 1.35 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
plugins {
java
kotlin("jvm") version "1.9.0"
kotlin("plugin.serialization") version "1.9.0"
`maven-publish`
}
group = "dev.llelievr"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0")
implementation("org.slf4j:slf4j-api:1.7.36")
testImplementation("ch.qos.logback:logback-classic:1.2.11")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.9.3")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testImplementation("com.fazecast:jSerialComm:2.10.2")
}
gradle.taskGraph.whenReady {
tasks.named<Test>("test") {
onlyIf {
// Run tests only if the 'test' task is invoked directly
}
useJUnitPlatform()
}
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "17"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "17"
}
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = "dev.llelievr"
artifactId = "espflashkotlin"
version = "1.0.0"
from(components["java"])
}
}
}