Skip to content

Commit

Permalink
Generate uber jar to be release file (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
chia7712 authored Oct 6, 2021
1 parent de0edc9 commit fe8fdd9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Run the benchmark from source code

Run the benchmark from release
```shell
./bin/App Latency --bootstrap.servers 192.168.50.224:18878
java -jar app-0.0.1-SNAPSHOT-all.jar Latency --bootstrap.servers 192.168.50.224:18878
```

### Latency Benchmark Configurations
Expand All @@ -95,9 +95,9 @@ Run the tool from source code
./gradlew run --args="offset --bootstrap.servers 192.168.50.178:19993"
```

Run the benchmark from release
Run the tool from release
```shell
./bin/App offset --bootstrap.servers 192.168.50.178:19993
java -jar app-0.0.1-SNAPSHOT-all.jar offset --bootstrap.servers 192.168.50.178:19993
```

### Offset Explorer Configurations
Expand Down
1 change: 1 addition & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
plugins {
// Apply the application plugin to add support for building a CLI application in Java.
id 'application'
id 'com.github.johnrengelman.shadow' version '7.1.0'
}

repositories {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/org/astraea/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class App {
Arrays.asList(End2EndLatency.class, OffsetExplorer.class, KafkaMetricClientApp.class);

private static String toString(List<Class<?>> mains) {
return mains.stream().map(Class::getName).collect(Collectors.joining(","));
return mains.stream().map(Class::getSimpleName).collect(Collectors.joining(","));
}

private static String usage(List<Class<?>> mains) {
Expand Down

0 comments on commit fe8fdd9

Please sign in to comment.