Skip to content

Instantly share code, notes, and snippets.

@PeterJohnson
Created August 12, 2016 03:27
Show Gist options
  • Save PeterJohnson/1459b548349b883d82bfe09dd3a9eac9 to your computer and use it in GitHub Desktop.
Save PeterJohnson/1459b548349b883d82bfe09dd3a9eac9 to your computer and use it in GitHub Desktop.
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'com.github.johnrengelman.shadow'
evaluationDependsOn(':wpilibj')
mainClassName = 'edu.wpi.first.wpilibj.RobotBase'
buildscript {
repositories { jcenter() }
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
}
}
def wpilibj = project(':wpilibj')
dependencies {
compile wpilibj
compile files(wpilibj.sourceSets.test.output.classesDir)
compile 'edu.wpi.first.wpilib.networktables.java:NetworkTables:3.0.0-SNAPSHOT:arm'
}
build.dependsOn shadowJar
jar {
manifest { attributes 'Robot-Class': 'MyRobot' }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment