-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
65 lines (53 loc) · 1.35 KB
/
build.gradle
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
plugins {
id 'java-library'
id 'application'
id 'org.openjfx.javafxplugin' version '0.1.0'
id "org.sonarqube" version "4.4.1.3373"
id 'jacoco'
}
javafx {
version = "22.0.1"
modules = ['javafx.controls', 'javafx.fxml']
}
group 'ch.unibas.dmi.dbis'
version '0.1.0'
mainClassName = 'ch.unibas.dmi.dbis.cs108.letuscook.Main'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.apache.logging.log4j:log4j-api:2.+'
implementation 'org.apache.logging.log4j:log4j-core:2.+'
implementation 'org.openjfx:javafx-controls:21.0.2'
implementation 'org.openjfx:javafx-media:21.0.2'
testImplementation("org.junit.jupiter:junit-jupiter:5.+")
}
test {
useJUnitPlatform()
//finalizedBy jacocoTestReport
testLogging {
events "passed", "skipped", "failed"
}
}
//jacoco {
// toolVersion = "0.8.5"
//}
jar {
manifest {
attributes(
'Main-Class': mainClassName
)
}
from {
configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
duplicatesStrategy(DuplicatesStrategy.INCLUDE)
}
task "build-cs108"(dependsOn: ['javadoc', 'compileJava', 'jar']) {
}