Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate uber jar to be release file #40

Merged
merged 2 commits into from
Oct 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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