forked from wpilibsuite/RobotBuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
96 lines (79 loc) · 2.1 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
plugins {
id 'io.franzbecker.gradle-lombok' version '1.6'
id 'java'
id 'jacoco'
id 'maven'
id 'application'
id 'com.github.johnrengelman.shadow' version '1.2.3'
id 'maven-publish'
id 'net.ltgt.errorprone' version '0.0.8'
id 'edu.wpi.first.wpilib.versioning.WPILibVersioningPlugin' version '1.6'
}
configurations.errorprone {
resolutionStrategy.force 'com.google.errorprone:error_prone_core:2.0.9'
}
lombok {
version = "1.16.8"
}
jacoco {
toolVersion = "0.7.5.201505241946"
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
check.dependsOn jacocoTestReport
mainClassName = "robotbuilder.RobotBuilder"
if (!hasProperty('mainClass')) {
ext.mainClass = mainClassName
}
repositories {
mavenCentral()
maven {
url "https://jitpack.io" // used to grab JGraph from its Github releases because it's not in maven central
}
}
dependencies {
compile 'org.apache.velocity:velocity:1.7'
compile 'org.yaml:snakeyaml:1.10'
compile 'com.github.jgraph:jgraphx:v3.3.1.1'
compile "org.projectlombok:lombok:${lombok.version}"
testCompile 'junit:junit:4.11'
}
test {
testLogging {
events "failed"
exceptionFormat "full"
}
}
jar {
from(configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }) {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
manifest {
attributes('Implementation-Title': 'RobotBuilder',
'Implementation-Version': WPILibVersion.version,
'Built-By': System.getProperty('user.name'),
'Built-Date': new Date(),
'Built-JDK': System.getProperty('java.version'))
}
}
publishing {
publications {
maven(MavenPublication) {
artifact(shadowJar) {
classifier null
}
groupId 'edu.wpi.first.wpilib'
artifactId 'RobotBuilder'
version WPILibVersion.version
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.14.1'
}