-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.gradle.kts
57 lines (48 loc) · 1.78 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
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.82.2"
}
repositories { // Where to search for dependencies
mavenCentral()
}
dependencies {
// Suppressions for SpotBugs
compileOnly("com.github.spotbugs:spotbugs-annotations:4.8.6")
// Maven dependencies are composed by a group name, a name and a version, separated by colons
implementation("com.omertron:API-OMDB:1.5")
implementation("org.jooq:jool:0.9.15")
/*
* Simple Logging Facade for Java (SLF4J) with Apache Log4j
* See: http://www.slf4j.org/
*/
val slf4jVersion = "2.0.16"
implementation("org.slf4j:slf4j-api:$slf4jVersion")
// Logback backend for SLF4J
runtimeOnly("ch.qos.logback:logback-classic:1.5.16")
// JUnit API and testing engine
val jUnitVersion = "5.11.4"
// 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")
}
application {
// Define the main class for the application.
mainClass.set("it.unibo.sampleapp.RateAMovie")
}
tasks.test {
useJUnitPlatform()
testLogging {
events(*org.gradle.api.tasks.testing.logging.TestLogEvent.values())
showStandardStreams = true
}
}