-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
79 lines (62 loc) · 1.98 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
plugins {
id 'java'
id 'application'
// OpenJFX Plugin
id 'org.openjfx.javafxplugin' version '0.0.7'
id "org.sonarqube" version "2.6"
}
archivesBaseName = 'yatzi-application'
group = 'ch.juventus.yatzi'
version = '0.0.1'
sourceCompatibility = '11.0'
targetCompatibility = '11.0'
test {
useJUnitPlatform()
}
repositories {
mavenCentral()
}
javafx {
// Define all Modules needed for java FX
modules = ['javafx.controls', 'javafx.fxml', 'javafx.graphics']
}
// Define the main class for the application
mainClassName = 'ch.juventus.yatzi.YatziApplication'
jar {
manifest {
attributes 'Implementation-Title': 'Yatzi Application',
'Implementation-Version': version,
'Main-Class': mainClassName
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
test {
testLogging {
events "passed", "skipped", "failed", "standardError"
}
}
dependencies {
// Prevent boiler plate code
compileOnly "org.projectlombok:lombok:1.18.4"
testCompileOnly "org.projectlombok:lombok:1.18.4"
annotationProcessor "org.projectlombok:lombok:1.18.4"
testAnnotationProcessor "org.projectlombok:lombok:1.18.4"
// Logging
implementation 'org.slf4j:slf4j-api:1.7.26'
implementation 'ch.qos.logback:logback-classic:1.2.3'
implementation 'ch.qos.logback:logback-core:1.2.3'
// Json
implementation 'com.fasterxml.jackson.core:jackson-core:2.9.9'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.9.9'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.9'
// Config
compile group: 'org.aeonbits.owner', name: 'owner', version: '1.0.10'
// Mocking
implementation 'com.github.javafaker:javafaker:0.16'
// Testing
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.4.2'
testImplementation 'org.hamcrest:hamcrest-library:2.1'
testCompile 'org.junit.jupiter:junit-jupiter-engine:5.4.2'
}