Skip to content

Commit

Permalink
fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
Anamorphosee committed Aug 2, 2024
1 parent aa4857d commit 1d16ea1
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,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. If you build your project with Gradle, just apply Gradle plugin with id `dev.reformator.stracktracedecoroutinator`.
2. Add dependency `dev.reformator.stacktracedecoroutinator:stacktrace-decoroutinator-jvm:2.4.0` and call method `DecoroutinatorRuntime.load()`.
3. Add `-javaagent:stacktrace-decoroutinator-jvm-agent-2.4.0.jar` to your JVM start arguments. Corresponding dependency is `dev.reformator.stacktracedecoroutinator:stacktrace-decoroutinator-jvm-agent:2.4.0`.
2. Add dependency `dev.reformator.stacktracedecoroutinator:stacktrace-decoroutinator-jvm:2.4.1` and call method `DecoroutinatorRuntime.load()`.
3. Add `-javaagent:stacktrace-decoroutinator-jvm-agent-2.4.1.jar` to your JVM start arguments. Corresponding dependency is `dev.reformator.stacktracedecoroutinator:stacktrace-decoroutinator-jvm-agent:2.4.1`.

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

Expand Down Expand Up @@ -148,7 +148,7 @@ java.lang.Exception: exception at 1722597709832
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.0"
id("dev.reformator.stacktracedecoroutinator") version "2.4.1"
}
```

Expand Down
3 changes: 2 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ buildscript {
classpath("com.github.johnrengelman:shadow:${decoroutinatorVersions["shadow"]}")
classpath("org.jetbrains.dokka:dokka-gradle-plugin:${decoroutinatorVersions["dokka"]}")
classpath("com.android.tools.build:gradle:${decoroutinatorVersions["androidGradle"]}")
classpath("com.gradle.publish:plugin-publish-plugin:${decoroutinatorVersions["pluginPublish"]}")
}
}

subprojects {
group = "dev.reformator.stacktracedecoroutinator"
version = "2.4.0"
version = "2.4.1"
}
12 changes: 12 additions & 0 deletions gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import com.android.build.gradle.internal.tasks.factory.dependsOn
import org.jetbrains.dokka.gradle.AbstractDokkaTask

plugins {
Expand All @@ -12,11 +13,17 @@ repositories {
mavenCentral()
}

@Suppress("UnstableApiUsage")
gradlePlugin {
website = "https://github.com/Anamorphosee/stacktrace-decoroutinator"
vcsUrl = "https://github.com/Anamorphosee/stacktrace-decoroutinator.git"
plugins {
create("decoroutinatorPlugin") {
id = "dev.reformator.stacktracedecoroutinator"
implementationClass = "dev.reformator.stacktracedecoroutinator.gradleplugin.DecoroutinatorPlugin"
displayName = "Stacktrace Decoroutinator Gradle Plugin"
description = "Gradle plugin for recovering stack trace in exceptions thrown in Kotlin coroutines"
tags = listOf("kotlin", "coroutines", "debug", "kotlin-coroutines")
}
}
}
Expand Down Expand Up @@ -105,6 +112,11 @@ publishing {
}
}

tasks.named("generateMetadataFileForMavenPublication").dependsOn(
tasks.named("dokkaJavadocsJar"),
tasks.named("kotlinSourcesJar")
)

signing {
useGpgCmd()
sign(publishing.publications["maven"])
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ include(
project(":runtime").name = "stacktrace-decoroutinator-runtime"
project(":generator").name = "stacktrace-decoroutinator-generator"
project(":gradle-plugin").name = "dev.reformator.stacktracedecoroutinator.gradle.plugin"
//project(":gradle-plugin").name = "stacktrace-decoroutinator-gradle-plugin"
project(":jvm-agent-common").name = "stacktrace-decoroutinator-jvm-agent-common"
project(":jvm").name = "stacktrace-decoroutinator-jvm"
project(":jvm-agent").name = "stacktrace-decoroutinator-jvm-agent"
Expand Down
1 change: 1 addition & 0 deletions versions.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ ktor=2.0.1
junit5=5.10.3
junit4=4.13.2
androidTestRunner=1.5.2
pluginPublish=1.2.1

0 comments on commit 1d16ea1

Please sign in to comment.