generated from DanySK/Template-for-Kotlin-JVM-Projects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
126 lines (115 loc) · 3.74 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/*
* Copyright (C) 2010-2022, Danilo Pianini and contributors
* listed, for each module, in the respective subproject's build.gradle.kts file.
*
* This file is part of Alchemist, and is distributed under the terms of the
* GNU General Public License, with a linking exception,
* as described in the file LICENSE in the Alchemist distribution's top directory.
*/
plugins {
alias(libs.plugins.dokka)
alias(libs.plugins.gitSemVer)
alias(libs.plugins.java.qa)
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.kotlin.qa)
alias(libs.plugins.multiJvmTesting)
alias(libs.plugins.publishOnCentral)
alias(libs.plugins.taskTree)
}
group = "it.unibo.alchemist"
repositories {
mavenCentral()
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
content {
includeGroup("no.tornado")
}
}
}
multiJvm {
jvmVersionForCompilation.set(17)
}
kotlin {
compilerOptions {
allWarningsAsErrors = true
}
}
dependencies {
compileOnly(libs.spotbugs.annotations)
api(libs.bundles.alchemist)
implementation(libs.bundles.jiconfont)
implementation(libs.apache.commons.collections4)
implementation(libs.controlsfx)
implementation(libs.gson.extras)
implementation(libs.guava)
implementation(libs.javafxSvg)
implementation(libs.jfoenix)
implementation(libs.leafletmap)
implementation(libs.resourceloader)
implementation(libs.slf4j)
implementation(libs.tornadofx)
val javaFXVersion = "11"
for (platform in listOf("linux", "mac", "win")) {
api("org.openjfx:javafx-base:$javaFXVersion:$platform")
api("org.openjfx:javafx-controls:$javaFXVersion:$platform")
api("org.openjfx:javafx-fxml:$javaFXVersion:$platform")
api("org.openjfx:javafx-graphics:$javaFXVersion:$platform")
api("org.openjfx:javafx-media:$javaFXVersion:$platform")
api("org.openjfx:javafx-swing:$javaFXVersion:$platform")
api("org.openjfx:javafx-web:$javaFXVersion:$platform")
}
testImplementation(libs.junit.api)
testRuntimeOnly(libs.junit.engine)
testRuntimeOnly(libs.alchemist.incarnation.protelis)
}
tasks.javadoc {
enabled = false
}
tasks.test {
useJUnitPlatform()
testLogging {
showStandardStreams = true
showCauses = true
showStackTraces = true
events(
*org.gradle.api.tasks.testing.logging.TestLogEvent
.values(),
)
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
}
}
// TODO: enable PMD when this bug is fixed: https://github.com/pmd/pmd/issues/5096
tasks.withType<Pmd>().configureEach {
enabled = false
}
signing {
val signingKey: String? by project
val signingPassword: String? by project
useInMemoryPgpKeys(signingKey, signingPassword)
}
publishOnCentral {
projectLongName.set(project.properties["projectLongName"] as String)
projectDescription.set(project.properties["projectDescription"] as String)
scmConnection.set("scm:git:https://github.com/AlchemistSimulator/alchemist-fxui")
projectUrl.set("https://github.com/AlchemistSimulator/alchemist-fxui")
}
publishing.publications {
withType<MavenPublication> {
pom {
developers {
developer {
name.set("Niccolò Maltoni")
email.set("[email protected]")
}
developer {
name.set("Vuksa Mihajlovic")
email.set("[email protected]")
}
developer {
name.set("Danilo Pianini")
email.set("[email protected]")
}
}
}
}
}