Skip to content

Commit 2f16661

Browse files
committed
produce a fat jar
1 parent a6b2514 commit 2f16661

File tree

3 files changed

+24
-21
lines changed

3 files changed

+24
-21
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ https://github.com/madhephaestus/SimplePacketComs/blob/master/README.md
99

1010
# How To add new commands to This Application
1111

12-
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.
12+
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.
1313

1414
## Setup: Set the Command ID
1515

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

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

35-
then
35+
then
3636

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

build.gradle

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
//buildscript {
2-
// repositories {
3-
// maven {
4-
// url "https://plugins.gradle.org/m2/"
5-
// }
6-
// }
7-
// dependencies {
8-
// classpath "com.github.jengelman.gradle.plugins:shadow:5.1.0"
9-
// }
10-
// }
11-
//
1+
buildscript {
2+
repositories {
3+
maven {
4+
url "https://plugins.gradle.org/m2/"
5+
}
6+
}
7+
dependencies {
8+
classpath "com.github.jengelman.gradle.plugins:shadow:5.1.0"
9+
}
10+
}
11+
1212

1313
plugins {
1414
id "com.diffplug.gradle.spotless" version "3.14.0"
1515
}
16-
//apply plugin: "com.github.johnrengelman.shadow"
16+
apply plugin: "com.github.johnrengelman.shadow"
1717
apply plugin: 'java'
1818
apply plugin: 'application'
1919
apply plugin: 'checkstyle'
@@ -30,7 +30,7 @@ repositories {
3030
dependencies {
3131

3232
implementation "com.neuronrobotics:SimplePacketComsJava:0.10.1"
33-
implementation "com.neuronrobotics:SimplePacketComsJava-HID:0.13.0"
33+
implementation "com.neuronrobotics:SimplePacketComsJava-HID:0.13.0"
3434
//implementation project(":SimplePacketComsJava")
3535

3636
}
@@ -39,7 +39,7 @@ checkstyle {
3939
toolVersion = "8.10"
4040
configFile = new File(rootDir, "checkstyle.xml")
4141
}
42-
42+
4343
spotless {
4444
format 'misc', {
4545
target '**/*.gradle', '**/*.md', '**/.gitignore', '**/*.yml', '**/*.sh', '**/*.xml'
@@ -50,7 +50,10 @@ spotless {
5050
endWithNewline()
5151
}
5252
}
53-
54-
task wrapper(type: Wrapper) {
55-
gradleVersion = '5.0'
56-
}
53+
shadowJar {
54+
mainClassName = 'edu.wpi.rbe.rbe2001.fieldsimulator.gui.Main'
55+
baseName = 'FieldControl'
56+
classifier = null
57+
version = '0.14.0'
58+
mergeServiceFiles()
59+
}

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
//include ":SimplePacketComsJava"
2-
//project(":SimplePacketComsJava").projectDir = file("../SimplePacketComsJava")
2+
//project(":SimplePacketComsJava").projectDir = file("../SimplePacketComsJava")

0 commit comments

Comments
 (0)