forked from wpilibsuite/SmartDashboard
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
83 lines (70 loc) · 1.93 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
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '4.0.3'
id 'maven-publish'
id 'idea'
id 'edu.wpi.first.wpilib.versioning.WPILibVersioningPlugin' version '2.3'
id 'checkstyle'
}
repositories {
mavenCentral()
}
dependencies {
compile "edu.wpi.first.ntcore:ntcore-java:2019.+"
compile "edu.wpi.first.wpiutil:wpiutil-java:2019.+"
compile 'junit:junit:4.12'
compile 'jfree:jcommon:1.0.16'
compile 'jfree:jfreechart:1.0.13'
compile group: 'org.bytedeco', name: 'javacv-platform', version: '1.4.3'
runtime "edu.wpi.first.ntcore:ntcore-jni:2019.+:all"
}
jar {
baseName = 'SmartDashboard'
}
shadowJar {
baseName = 'SmartDashboard'
}
// Ensure that the WPILibVersioningPlugin is setup by setting the release type, if releaseType wasn't
// already specified on the command line
if (!hasProperty('releaseType')) {
WPILibVersion {
releaseType = 'dev'
}
}
publishing {
publications {
maven(MavenPublication) {
artifact(shadowJar) {
classifier null
}
groupId 'edu.wpi.first.wpilib'
artifactId 'SmartDashboard'
version WPILibVersion.version
}
}
}
checkstyle {
configFile = new File(rootDir, "checkstyle.xml")
toolVersion = '6.19'
if (project.hasProperty("ignoreCheckstyle")) {
ignoreFailures = true
}
}
mainClassName = "edu.wpi.first.smartdashboard.SmartDashboard"
project(':fakeRobot') {
apply plugin: 'java'
apply plugin: 'application'
dependencies {
compile "edu.wpi.first.ntcore:ntcore-java:2019.+"
compile "edu.wpi.first.wpiutil:wpiutil-java:2019.+"
runtime "edu.wpi.first.ntcore:ntcore-jni:2019.+:all"
}
mainClassName = "edu.wpi.livewindowfakerobot.LiveWindowFakeRobot"
}
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:deprecation"
}
wrapper {
gradleVersion = '5.0'
}