-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
100 lines (80 loc) · 2.21 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*
* This file is subject to the terms and conditions defined in file 'LICENSE', which is part of this source code package
*
* Author: Felipe González Alarcón
* Email: [email protected]
*
* Project: TruckSim-Telemetry-Kotlin
* Module: TruckSim-Telemetry-Kotlin
* Last modified: 09-02-23 00:57
*/
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.8.10"
`java-library`
`maven-publish`
id("org.sonarqube") version "4.0.0.2929"
id("org.jetbrains.dokka") version "1.8.10"
application
}
group = "cl.figonzal"
version = "1.1"
repositories {
mavenCentral()
}
dependencies {
//Coroutines
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
//JNA
implementation("net.java.dev.jna:jna-platform:5.13.0")
//LOGGER
implementation("io.github.microutils:kotlin-logging-jvm:3.0.5")
runtimeOnly(group = "ch.qos.logback", name = "logback-classic", version = "1.4.5")
testImplementation(kotlin("test"))
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}
application {
mainClass.set("MainKt")
}
sonarqube {
properties {
property("sonar.projectName", "TruckSim-Telemetry-Kotlin")
property("sonar.projectKey", "TruckSim-Telemetry-Kotlin")
property("sonar.sourceEncoding", "UTF-8")
property("sonar.sources", "src/main/kotlin")
}
}
publishing {
publications {
create<MavenPublication>("TruckSim-Telemetry-Kotlin") {
from(components["kotlin"])
}
}
}
tasks.dokkaHtml {
outputDirectory.set(rootDir.resolve("docs"))
failOnWarning.set(true)
dokkaSourceSets.configureEach {
suppressObviousFunctions.set(true)
suppressGeneratedFiles.set(true)
reportUndocumented.set(false)
skipEmptyPackages.set(true)
perPackageOption {
matchingRegex.set(".*jna.*")
suppress.set(true)
}
perPackageOption {
matchingRegex.set(".*exceptions.*")
suppress.set(true)
}
}
}