Skip to content

Commit

Permalink
Add support for fat jar to make deploying easier
Browse files Browse the repository at this point in the history
  • Loading branch information
aschokking committed Feb 22, 2020
1 parent 3f9bc42 commit bb3691a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
13 changes: 12 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# Robot Visualizer

[![Build Status](https://travis-ci.org/Team488/SimpleVisualizer.svg?branch=master)](https://travis-ci.org/Team488/SimpleVisualizer)
[![Build Status](https://travis-ci.org/Team488/SimpleVisualizer.svg?branch=master)](https://travis-ci.org/Team488/SimpleVisualizer)

## Installing the basic services on the drive laptop

Download pre-reqs:
- Download nssm https://nssm.cc/download
- Download influxdb https://dl.influxdata.com/influxdb/releases/influxdb-1.7.10_windows_amd64.zip
- Download grafana https://dl.grafana.com/oss/release/grafana-6.6.2.windows-amd64.zip

Use `nssm` to create services to automatically start with Windows
- influxdb
- java -jar RobotReader-1.0.jar (need fat jar)
10 changes: 10 additions & 0 deletions RobotReader/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,14 @@ dependencies {
task jarSources(type:Jar){
from sourceSets.main.allSource
classifier = 'source'
}

jar {
manifest {
attributes "Main-Class": "xbot.roboreader.RobotReaderMain"
}

from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import org.influxdb.InfluxDBFactory;
import org.influxdb.dto.Point;
import org.influxdb.dto.Pong;
import org.influxdb.dto.Query;
import org.influxdb.dto.QueryResult;

import edu.wpi.first.networktables.NetworkTable;
import edu.wpi.first.networktables.NetworkTableEntry;
Expand Down
1 change: 1 addition & 0 deletions visualizer/src/influx-api/Api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default class Api {
constructor(influx?: InfluxDB) {
this.influx = influx || new InfluxDB({
database: dbName
// host: '10.4.88.227' // driver station static ip
});;
}

Expand Down

0 comments on commit bb3691a

Please sign in to comment.