-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
64 lines (56 loc) · 1.46 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.google.gradle:osdetector-gradle-plugin:1.4.0'
}
}
repositories {
maven {
url "${System.getProperty('user.home')}/releases/maven/development"
}
maven {
url = "http://first.wpi.edu/FRC/roborio/maven/release"
}
mavenCentral()
}
apply plugin: 'com.google.osdetector'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'application'
mainClassName = "org.usfirst.frc2084.CMonster2016.vision.StandaloneVision"
javadoc {
failOnError false
}
dependencies {
compile project(':VisionProcessor2016')
String ntType = "desktop"
if (osdetector.arch.contains("arm")) {
ntType = "arm"
}
compile 'edu.wpi.first.wpilib.networktables.java:NetworkTables:3.+:' + ntType
}
distributions {
main {
contents {
from(file(project(':VisionProcessor2016').projectDir.toString() + '/lib')) {
into("lib")
exclude "opencv"
}
from(file(project(':VisionProcessor2016').projectDir.toString() + '/build/libs/gpuvision/shared')) {
into("lib")
}
}
}
}
task updateDist(type: Copy, dependsOn: ':jar') {
from jar.archivePath
from project(':VisionProcessor2016').projectDir.toString() + '/build/lib/VisionProcessor2016.jar'
into '$buildDir/install/VisionServer2016/lib'
}
jar {
manifest {
attributes 'Main-Class': 'org.usfirst.frc2084.CMonster2016.vision.StandaloneVision'
}
}