This repository has been archived by the owner on Mar 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
108 lines (99 loc) · 2.73 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
//plugins {
// id "java"
// id "edu.wpi.first.GradleRIO" version "2019.4.1" apply false
// id 'org.openjfx.javafxplugin' version '0.0.5' apply false
// id 'pmd'
//}
//
//// Set this to true to enable desktop support.
//def includeDesktopSupport = true
//
//allprojects {
//
// // We want the entire project to be openable in an IDE
// apply plugin: "idea"
// apply plugin: "eclipse"
//
// sourceCompatibility = JavaVersion.VERSION_1_8
// targetCompatibility = JavaVersion.VERSION_1_8
//
//}
//
//subprojects {
// apply plugin: "java"
// apply plugin: "edu.wpi.first.GradleRIO"
// apply plugin: 'pmd'
// pmd {
// ignoreFailures = true
// }
// // Maven central needed for JUnit
// repositories {
// mavenCentral()
// mavenLocal()
// jcenter()
// flatDir {
// // The directory lib is available as a source for dependencies - we put any JAR files here
// // The directory lib will always be one folder "above" a subproject folder - thus the ".."
// dirs '../lib'
// }
// maven { url 'https://jitpack.io' }
// }
//
// dependencies {
// compile wpi.deps.wpilib()
// testCompile 'junit:junit:4.12'
// }
//
// test {
// testLogging {
// events "passed", "skipped", "failed"
// exceptionFormat "full"
// }
// }
//
//}
plugins {
id "java"
id "edu.wpi.first.GradleRIO" version "2020.1.2"
id 'org.openjfx.javafxplugin' version '0.0.5' apply false
id 'pmd'
}
// Set this to true to enable desktop support.
def includeDesktopSupport = true
allprojects {
// We want the entire project to be openable in an IDE
apply plugin: "idea"
apply plugin: "eclipse"
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
subprojects {
apply plugin: "java"
apply plugin: "edu.wpi.first.GradleRIO"
apply plugin: 'pmd'
pmd {
ignoreFailures = true
}
// Maven central needed for JUnit
repositories {
mavenCentral()
mavenLocal()
jcenter()
flatDir {
// The directory lib is available as a source for dependencies - we put any JAR files here
// The directory lib will always be one folder "above" a subproject folder - thus the ".."
dirs '../lib'
}
maven { url 'https://jitpack.io' }
}
dependencies {
compile wpi.deps.wpilib()
testCompile 'junit:junit:4.12'
}
test {
testLogging {
events "passed", "skipped", "failed"
exceptionFormat "full"
}
}
}