-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
47 lines (38 loc) · 984 Bytes
/
build.gradle.kts
File metadata and controls
47 lines (38 loc) · 984 Bytes
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
plugins {
id("java")
`java-library`
application
`maven-publish`
}
group = "de.t14d3"
version = "1.2-SNAPSHOT"
application {
mainClass.set("de.t14d3.spool.Main")
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.reflections:reflections:0.10.2")
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("com.h2database:h2:2.2.224")
testImplementation("mysql:mysql-connector-java:8.0.32")
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
tasks.jar {
manifest {
attributes["Main-Class"] = "de.t14d3.spool.Main"
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(sourceSets.main.get().output)
dependsOn(configurations.runtimeClasspath)
from({
configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) }
})
}
tasks.test {
useJUnitPlatform()
}