diff --git a/README-chs.md b/README-chs.md index 20b5913..8a32996 100644 --- a/README-chs.md +++ b/README-chs.md @@ -127,7 +127,7 @@ fun test(a1: Int, a2: Any): String = runBlocking { test(a1, a2) } `build.gradle` 或 `build.gradle.kts` ```kotlin plugins { - id("net.mamoe.kotlin-jvm-blocking-bridge") version "0.7.0" + id("net.mamoe.kotlin-jvm-blocking-bridge") version "0.8.0" } ``` @@ -142,7 +142,7 @@ pluginManagement { 本插件会自动添加如下的运行时依赖: ```kotlin -implementation("net.mamoe:kotlin-jvm-blocking-bridge:0.7.0") +implementation("net.mamoe:kotlin-jvm-blocking-bridge:0.8.0") ``` 因此只需要安装插件, 而不需要添加依赖即可使用 diff --git a/README.md b/README.md index cd98dd2..a7aee83 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,7 @@ The plugin is ready to use. `build.gradle` or `build.gradle.kts` ```kotlin plugins { - id("net.mamoe.kotlin-jvm-blocking-bridge") version "0.7.0" + id("net.mamoe.kotlin-jvm-blocking-bridge") version "0.8.0" } ``` diff --git a/buildSrc/src/main/kotlin/Versions.kt b/buildSrc/src/main/kotlin/Versions.kt index 7e63aae..a51d04e 100644 --- a/buildSrc/src/main/kotlin/Versions.kt +++ b/buildSrc/src/main/kotlin/Versions.kt @@ -1,5 +1,5 @@ object Versions { - const val project = "0.7.0" + const val project = "0.8.0" const val idePlugin = "1.1.0" const val kotlin = "1.4.0-rc" diff --git a/gradle-plugin/src/main/kotlin/net/mamoe/kjbb/JvmBlockingBridgeGradlePlugin.kt b/gradle-plugin/src/main/kotlin/net/mamoe/kjbb/JvmBlockingBridgeGradlePlugin.kt index fab6174..721a527 100644 --- a/gradle-plugin/src/main/kotlin/net/mamoe/kjbb/JvmBlockingBridgeGradlePlugin.kt +++ b/gradle-plugin/src/main/kotlin/net/mamoe/kjbb/JvmBlockingBridgeGradlePlugin.kt @@ -6,7 +6,7 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension import org.jetbrains.kotlin.gradle.plugin.* -internal const val JBB_VERSION = "0.7.0" +internal const val JBB_VERSION = "0.8.0" internal const val PLUGIN_ID = "net.mamoe.kotlin-jvm-blocking-bridge-compiler-embeddable" diff --git a/runtime/gradle/publish.gradle b/runtime/gradle/publish.gradle index 006dc07..8f7d0ff 100644 --- a/runtime/gradle/publish.gradle +++ b/runtime/gradle/publish.gradle @@ -160,7 +160,9 @@ afterEvaluate { } -apply from: project.file("gradle/bintray.gradle") +if (upload.Bintray.isBintrayAvailable(project)) { + apply from: project.file("gradle/bintray.gradle") +} /* task bintrayUpload(dependsOn: publish)