forked from wpilibsuite/RobotBuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
87 lines (73 loc) · 2.16 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
// seems to be not including the dependencies in the jar. I had thought that the compile
// dependencies would become runtime dependcies and be built in.
// and one of the unit tests fails
apply plugin: 'java'
apply plugin: "jacoco"
apply plugin: 'maven'
apply plugin: 'application' // lets us run the project from IDE
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'maven-publish'
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
}
}
buildscript {
repositories { jcenter() }
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.1'
}
}
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:1.16.4'
testCompile 'junit:junit:4.11'
}
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': '2.0.0',
'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 '2.0.0-SNAPSHOT'
}
}
repositories {
maven {
url "${System.getProperty('user.home')}/releases/maven/${project.hasProperty('repo') ? repo : 'development'}"
}
}
}