Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
Anamorphosee committed Sep 11, 2024
1 parent 33f7188 commit 7a7ee22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ Thus, if the coroutine throws an exception, they mimic the real call stack of th
### JVM
There are three ways to enable Stacktrace-decoroutinator for JVM.
1. (recommended) If you build your project with Gradle, just apply Gradle plugin with id `dev.reformator.stacktracedecoroutinator`.
2. Add dependency `dev.reformator.stacktracedecoroutinator:stacktrace-decoroutinator-jvm:2.4.3` and call method `DecoroutinatorJvmApi.install()`.
3. Add `-javaagent:stacktrace-decoroutinator-jvm-agent-2.4.3.jar` to your JVM start arguments. Corresponding dependency is `dev.reformator.stacktracedecoroutinator:stacktrace-decoroutinator-jvm-agent:2.4.3`.
2. Add dependency `dev.reformator.stacktracedecoroutinator:stacktrace-decoroutinator-jvm:2.4.4` and call method `DecoroutinatorJvmApi.install()`.
3. Add `-javaagent:stacktrace-decoroutinator-jvm-agent-2.4.4.jar` to your JVM start arguments. Corresponding dependency is `dev.reformator.stacktracedecoroutinator:stacktrace-decoroutinator-jvm-agent:2.4.4`.

The first option generates auxiliary methods at build time and the other two use the Java instrumentation API at runtime.

Expand Down Expand Up @@ -156,12 +156,12 @@ java.lang.Exception: exception at 1725331728978
For Android there is only one option to enable Stacktrace-decoroutinator - apply the Gradle plugin `dev.reformator.stacketracedecoroutinator` to your application's project.
```kotlin
plugins {
id("dev.reformator.stacktracedecoroutinator") version "2.4.3"
id("dev.reformator.stacktracedecoroutinator") version "2.4.4"
}
```

### Using Decoroutinator Gradle plugin only for tests
If you want to use Decoroutinator for test only, it's recommended to separate your tests in a different Gradle subproject and apply Decoroutinator Gradle plugin only to it.
If you want to use Decoroutinator for test only, it's recommended to separate your tests in a different Gradle subproject and apply Decoroutinator Gradle plugin to it.
But if you don't want to separate your tests, it's still possible by adding a configuration below to your `build.gradle.kts`:
```kotlin
stacktraceDecoroutinator {
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ buildscript {

subprojects {
group = "dev.reformator.stacktracedecoroutinator"
version = "2.4.4-SNAPSHOT"
version = "2.4.4"
}

0 comments on commit 7a7ee22

Please sign in to comment.