forked from teamhyper/hyperLib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
52 lines (43 loc) · 1.38 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
plugins {
id "fr.brouillard.oss.gradle.jgitver" version "0.2.0"
}
apply plugin: 'java'
apply plugin: 'checkstyle'
sourceCompatibility = 1.8
jgitver {
mavenLike = true
}
repositories {
mavenCentral()
maven {
url 'http://first.wpi.edu/FRC/roborio/maven/release'
}
}
dependencies {
compile group: 'edu.wpi.first.wpilibj', name: 'athena', version: '2017.+'
// We only need the desktop version right now, since this build file is only used for local testing.
compile group: 'edu.wpi.first.wpilib.networktables.java', name: 'NetworkTables', version: '3.+', classifier: 'desktop'
testCompile group: 'junit', name: 'junit', version: '4.+'
testCompile group: 'com.google.guava', name: 'guava', version: '19.0'
}
task sourcesJar(type: Jar, dependsOn: classes) {
description 'Builds a jar file full of sources.'
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
description 'Builds a jar file full of javadocs.'
classifier = 'javadoc'
from javadoc.destinationDir
}
// If we decide to use gradle to publish archives at some point, this is how we do it
artifacts {
archives sourcesJar
archives javadocJar
}
// By default, checkstyle wants to look at tests
// we override to only look at the main code
checkstyle {
toolVersion = '6.11.2'
sourceSets = [project.sourceSets.main]
}