-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
77 lines (66 loc) · 2.04 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
import jaci.openrio.gradle.GradleRIOPlugin
import jaci.openrio.gradle.frc.FRCJavaArtifact
import jaci.openrio.gradle.frc.RoboRIO
plugins {
id 'java'
id 'groovy'
id 'jaci.openrio.gradle.GradleRIO' version '2018.03.06'
id 'com.diffplug.gradle.spotless' version '3.10.0'
id 'net.ltgt.apt-idea' version '0.15'
id 'net.ltgt.errorprone' version "0.0.13"
}
def TEAM = 2767
def ROBOT_CLASS = 'frc.team2767.Robot'
deploy {
targets {
target("roborio", RoboRIO) {
team = TEAM
}
}
artifacts {
artifact('frcJava', FRCJavaArtifact) {
targets << "roborio"
}
}
}
repositories {
jcenter()
mavenLocal()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } // nanohttpd
}
dependencies {
//noinspection GroovyAssignabilityCheck
compile wpilib()
compile ctre()
compile navx()
compile openrio.powerup.matchData()
compile pathfinder()
compile 'org.strykeforce.thirdcoast:core:18.5.0'
compile 'org.slf4j:slf4j-api:1.7.25'
compile 'ch.qos.logback:logback-classic:1.2.3'
compile group: 'com.j2html', name: 'j2html', version: '1.2.2'
compile 'com.google.dagger:dagger:2.14.1'
annotationProcessor 'com.google.dagger:dagger-compiler:2.14.1'
annotationProcessor 'com.google.auto.factory:auto-factory:1.0-beta5'
compileOnly 'org.jetbrains:annotations:15.0'
compileOnly 'com.google.code.findbugs:jsr305:3.0.2'
compileOnly('com.google.auto.factory:auto-factory:1.0-beta5') {
exclude(group: 'com.google.guava') // https://github.com/google/dagger/issues/897
}
testCompile 'org.spockframework:spock-core:1.1-groovy-2.4'
testRuntime 'org.objenesis:objenesis:2.6'
testRuntime 'net.bytebuddy:byte-buddy:1.7.10'
}
jar {
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
manifest GradleRIOPlugin.javaManifest(ROBOT_CLASS)
}
spotless {
java {
googleJavaFormat()
target '**/*.java'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.4.1'
}