forked from Martinetto33/OOP22-tafl-games
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
61 lines (50 loc) · 1.82 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
plugins {
// Apply the java plugin to add support for Java
java
// Apply the application plugin to add support for building a CLI application
// You can run your app via task "run": ./gradlew run
application
/*
* Adds tasks to export a runnable jar.
* In order to create it, launch the "shadowJar" task.
* The runnable jar will be found in build/libs/projectname-all.jar
*/
id("com.github.johnrengelman.shadow") version "8.1.1"
id("org.danilopianini.gradle-java-qa") version "1.6.0"
}
repositories { // Where to search for dependencies
mavenCentral()
}
dependencies {
// Suppressions for SpotBugs
compileOnly("com.github.spotbugs:spotbugs-annotations:4.7.3")
/*
* Simple Logging Facade for Java (SLF4J) with Apache Log4j
* See: http://www.slf4j.org/
*/
val slf4jVersion = "2.0.6"
implementation("org.slf4j:slf4j-api:$slf4jVersion")
// Logback backend for SLF4J
runtimeOnly("ch.qos.logback:logback-classic:1.4.5")
// JUnit API and testing engine
val jUnitVersion = "5.9.2"
// when dependencies share the same version, grouping in a val helps to keep them in sync
testImplementation("org.junit.jupiter:junit-jupiter-api:$jUnitVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$jUnitVersion")
// Apache Commons Collections
val apacheCommonsCollectionsVersion = "4.4"
implementation("org.apache.commons:commons-collections4:$apacheCommonsCollectionsVersion")
// Snakeyaml
implementation("org.yaml:snakeyaml:2.0")
}
application {
// Define the main class for the application.
mainClass.set("taflgames.TaflGames")
}
tasks.test {
useJUnitPlatform()
testLogging {
events(*org.gradle.api.tasks.testing.logging.TestLogEvent.values())
showStandardStreams = true
}
}