forked from wpilibsuite/RobotBuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
109 lines (90 loc) · 2.32 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
109
plugins {
id 'java'
id 'jacoco'
id 'maven'
id 'application'
id 'maven-publish'
id 'edu.wpi.first.wpilib.versioning.WPILibVersioningPlugin' version '2.3'
id 'io.franzbecker.gradle-lombok' version '1.14'
id "com.github.johnrengelman.shadow" version "4.0.2"
}
mainClassName = "robotbuilder.RobotBuilder"
if (!hasProperty('releaseType')) {
WPILibVersion {
releaseType = 'dev'
}
}
def pubVersion = ''
if (project.hasProperty("publishVersion")) {
pubVersion = project.publishVersion
} else {
pubVersion = WPILibVersion.version
}
jacoco {
toolVersion = "0.8.2"
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
check.dependsOn jacocoTestReport
lombok {
version = "1.18.2"
sha256 = ""
}
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.apache.commons:commons-io:1.3.2'
compile 'com.sun.activation:javax.activation:1.2.0'
testCompile 'junit:junit:4.12'
annotationProcessor 'org.projectlombok:lombok:1.18.2'
compileOnly 'org.projectlombok:lombok:1.18.2'
}
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 pubVersion
}
}
}
wrapper {
gradleVersion = '5.0'
}