adjust coordinates to 1.1.0 release. move jbang sample to samples dir
This commit is contained in:
Родитель
1be9965bba
Коммит
ddb1c12a08
|
@ -18,7 +18,7 @@ as managing JFR across multiple JVMs, is not a goal of this project.
|
|||
<dependency>
|
||||
<groupId>com.microsoft.jfr</groupId>
|
||||
<artifactId>jfr-streaming</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<version>1.1.0</version>
|
||||
</dependency>
|
||||
```
|
||||
|
||||
|
@ -28,7 +28,7 @@ This example illustrates some of the API.
|
|||
|
||||
```java
|
||||
///usr/bin/env jbang "$0" "$@" ; exit $?
|
||||
//DEPS com.microsoft.jfr:jfr-streaming:1.0.0
|
||||
//DEPS com.microsoft.jfr:jfr-streaming:1.1.0
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
@ -62,7 +62,7 @@ public class Sample {
|
|||
You can run the code above with [jbang](https://www.jbang.dev):
|
||||
|
||||
1. Install jbang.
|
||||
1. Save the code above in a local `Sample.java` file, or [download directly](https://raw.githubusercontent.com/microsoft/jfr-streaming/main/src/test/java/Sample.java).
|
||||
1. Save the code above in a local `Sample.java` file, or [download directly](https://raw.githubusercontent.com/microsoft/jfr-streaming/samples/jbang/Sample.java).
|
||||
1. Run the code: `jbang Sample.java`
|
||||
|
||||
### Note on Oracle JDK 8
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
///usr/bin/env jbang "$0" "$@" ; exit $?
|
||||
//DEPS com.microsoft.jfr:jfr-streaming:1.0.0
|
||||
//DEPS com.microsoft.jfr:jfr-streaming:1.1.0
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Paths;
|
Загрузка…
Ссылка в новой задаче