Files
allwpilib/wpilibjIntegrationTests/build.gradle
2016-05-20 12:15:14 -07:00

56 lines
1.4 KiB
Groovy

apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'net.ltgt.errorprone'
configurations.errorprone {
resolutionStrategy.force 'com.google.errorprone:error_prone_core:2.0.9'
}
evaluationDependsOn(':wpilibj')
mainClassName = 'edu.wpi.first.wpilibj.test.AntJunitLanucher'
buildscript {
repositories { jcenter() }
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.1'
}
}
def wpilibj = project(':wpilibj')
dependencies {
compile wpilibj.sourceSets.shared.output
compile wpilibj.sourceSets.athena.output
compile files(wpilibj.jar.archivePath)
compile 'edu.wpi.first.wpilib.networktables.java:NetworkTables:3.0.0-SNAPSHOT:arm'
compile 'junit:junit:4.11'
compile 'com.googlecode.junit-toolbox:junit-toolbox:2.0'
compile 'org.apache.ant:ant:1.9.4'
compile 'org.apache.ant:ant-junit:1.9.4'
compile files(wpilibj.sourceSets.test.output.classesDir)
}
compileJava.dependsOn tasks.getByPath(':wpilibj:testClasses')
build.dependsOn shadowJar
jar {
wpilibj.binaries.withType(SharedLibraryBinarySpec) {
from(file(it.sharedLibraryFile)) {
into 'linux-arm'
}
}
dependsOn wpilibj.jar
}
shadowJar {
wpilibj.binaries.withType(SharedLibraryBinarySpec) {
from(file(it.sharedLibraryFile)) {
into 'linux-arm'
}
}
}