Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vsilaev authored Sep 10, 2022
1 parent 2c2dca2 commit e6d900b
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,35 @@ You have to add the following configuration to enable build-time instrumentation
```
Note that if you are using continuations with Java 1.8 lambdas then you need to add [Tascalate JavaFlow instrumentation agent](https://github.com/vsilaev/tascalate-javaflow/releases/download/2.7.3/javaflow.instrument-continuations.jar) at run-time as command-line option, while lambda-related classes are generated by JVM on the fly and there is no other way to instrument them. If this is not an option, then you can de-sugar all lambdas with [RetroLambda](https://github.com/luontola/retrolambda) Maven plugin at build-time (RetroLambda output is supported by Tascalate JavaFlow 2.3.2 or higher).

Please refer to [pom.xml](https://github.com/vsilaev/tascalate-javaflow-examples/blob/master/net.tascalate.javaflow.examples.common/pom.xml) in examples project for typical Maven configuration

Please refer to [pom.xml](https://github.com/vsilaev/tascalate-javaflow-examples/blob/master/net.tascalate.javaflow.examples.common/pom.xml) in examples project for typical Maven configuration.

# Gradle
To use continuations bytecode enhancer with Gradle you need to do the following.
First, specify JavaFlow gradle plugin dependency in `build.gradle`:
```groovy
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'net.tascalate.javaflow:net.tascalate.javaflow.tools.gradle:2.7.3'
}
}
```
Next, apply the `continuations` plugin and specify the dependency to the `net.tascalate.javaflow.api`:
```groovy
apply plugin: "java"
apply plugin: "continuations"
repositories {
mavenCentral()
}
dependencies {
implementation 'net.tascalate.javaflow:net.tascalate.javaflow.api:2.7.3'
}
```
# Ant

There is a separate Ant task for applying JavaFlow instrumentation at build-time.
Expand Down

0 comments on commit e6d900b

Please # to comment.