Skip to content

Commit

Permalink
produce a fat jar
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Sep 24, 2019
1 parent a6b2514 commit 2f16661
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 21 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ https://github.com/madhephaestus/SimplePacketComs/blob/master/README.md

# How To add new commands to This Application

To add your own custom command start with the default code and modify it by adding a custom command. Your new command needs a unique packet command ID, any 32 bit unsigned integer is valid.
To add your own custom command start with the default code and modify it by adding a custom command. Your new command needs a unique packet command ID, any 32 bit unsigned integer is valid.

## Setup: Set the Command ID

Expand All @@ -32,7 +32,7 @@ For commands sent as a single send you set the packet into waitToSend mode, then

https://github.com/WPIRoboticsEngineering/2001_Field_Controller/blob/2001_Field/src/main/java/edu/wpi/rbe/rbe2001/fieldsimulator/robot/RBE2001Robot.java#L118

then
then

https://github.com/WPIRoboticsEngineering/2001_Field_Controller/blob/2001_Field/src/main/java/edu/wpi/rbe/rbe2001/fieldsimulator/robot/RBE2001Robot.java#L294

Expand Down
39 changes: 21 additions & 18 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
//buildscript {
// repositories {
// maven {
// url "https://plugins.gradle.org/m2/"
// }
// }
// dependencies {
// classpath "com.github.jengelman.gradle.plugins:shadow:5.1.0"
// }
// }
//
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.github.jengelman.gradle.plugins:shadow:5.1.0"
}
}


plugins {
id "com.diffplug.gradle.spotless" version "3.14.0"
}
//apply plugin: "com.github.johnrengelman.shadow"
apply plugin: "com.github.johnrengelman.shadow"
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'checkstyle'
Expand All @@ -30,7 +30,7 @@ repositories {
dependencies {

implementation "com.neuronrobotics:SimplePacketComsJava:0.10.1"
implementation "com.neuronrobotics:SimplePacketComsJava-HID:0.13.0"
implementation "com.neuronrobotics:SimplePacketComsJava-HID:0.13.0"
//implementation project(":SimplePacketComsJava")

}
Expand All @@ -39,7 +39,7 @@ checkstyle {
toolVersion = "8.10"
configFile = new File(rootDir, "checkstyle.xml")
}

spotless {
format 'misc', {
target '**/*.gradle', '**/*.md', '**/.gitignore', '**/*.yml', '**/*.sh', '**/*.xml'
Expand All @@ -50,7 +50,10 @@ spotless {
endWithNewline()
}
}

task wrapper(type: Wrapper) {
gradleVersion = '5.0'
}
shadowJar {
mainClassName = 'edu.wpi.rbe.rbe2001.fieldsimulator.gui.Main'
baseName = 'FieldControl'
classifier = null
version = '0.14.0'
mergeServiceFiles()
}
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
//include ":SimplePacketComsJava"
//project(":SimplePacketComsJava").projectDir = file("../SimplePacketComsJava")
//project(":SimplePacketComsJava").projectDir = file("../SimplePacketComsJava")

0 comments on commit 2f16661

Please sign in to comment.