This repository has been archived by the owner on Sep 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
94 lines (78 loc) · 3.7 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
import org.gradle.internal.jvm.*
plugins {
id 'application'
id 'checkstyle'
id 'com.github.johnrengelman.shadow' version '5.0.0'
id 'org.openjfx.javafxplugin' version '0.0.7' apply false
}
if (Jvm.current().javaVersion.java11Compatible) {
apply plugin: 'org.openjfx.javafxplugin'
javafx {
modules = ['javafx.base', 'javafx.controls', 'javafx.graphics', 'javafx.fxml', 'javafx.media', 'javafx.swing']
}
}
group 'de.uniks.se1ss19teamb'
version '4.0.0'
repositories {
jcenter()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url 'https://sandec.bintray.com/repo' }
mavenCentral()
}
application {
mainClassName = 'de.uniks.se1ss19teamb.rbsg.Main'
}
configurations {
checkstyleOverride
}
sourceCompatibility = 1.8
sourceSets {
integration {
java {
srcDir 'src/test-integration/java'
}
}
}
dependencies {
checkstyleOverride group: 'com.puppycrawl.tools', name: 'checkstyle', version: '8.21'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.6.2'
implementation group: 'com.jfoenix', name: 'jfoenix', version: '8.0.8'
implementation group: 'commons-codec', name: 'commons-codec', version: '1.5'
implementation group: 'commons-io', name: 'commons-io', version: '2.5'
implementation group: 'commons-net', name: 'commons-net', version: '3.6'
implementation group: 'de.jensd', name: 'fontawesomefx-commons', version: '8.15'
implementation group: 'de.jensd', name: 'fontawesomefx-emojione', version: '2.2.7-2'
implementation group: 'de.jensd', name: 'fontawesomefx-fontawesome', version: '4.7.0-5'
implementation group: 'de.jensd', name: 'fontawesomefx-icons525', version: '3.0.0-4'
implementation group: 'de.jensd', name: 'fontawesomefx-materialdesignfont', version: '1.7.22-4'
implementation group: 'de.jensd', name: 'fontawesomefx-materialicons', version: '2.2.0-5'
implementation group: 'io.github.typhon0', name: 'AnimateFX', version: '1.2.1'
implementation group: 'javax.websocket', name: 'javax.websocket-client-api', version: '1.0'
implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.8'
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.11.2'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.11.2'
implementation group: 'org.glassfish.tyrus.bundles', name: 'tyrus-standalone-client', version: '1.15'
integrationImplementation configurations.testImplementation
integrationImplementation sourceSets.main.output
integrationImplementation sourceSets.test.output
integrationRuntimeOnly configurations.testRuntimeOnly
testImplementation group: 'de.sandec', name: 'openjfx-monocle', version: '8u212'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '2.+'
testImplementation group: 'org.powermock', name: 'powermock-api-mockito2', version: '2.0.2'
testImplementation group: 'org.powermock', name: 'powermock-module-junit4', version: '2.0.2'
testImplementation group: 'org.testfx', name: 'testfx-junit5', version: '4.0.15-alpha'
testImplementation group: 'org.junit.jupiter', name:'junit-jupiter-api', version: '5.5.1'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.5.1'
}
task testIntegration(type: Test) {
testClassesDirs = sourceSets.integration.output.classesDirs
classpath = sourceSets.integration.runtimeClasspath
debug = false
}
tasks.withType(Checkstyle) {
checkstyleClasspath = project.configurations.checkstyleOverride
maxWarnings = 0
}
test {
jvmArgs "-Dheadless=${project.hasProperty('headless') ? project.headless : false}"
}