diff --git a/README-chs.md b/README-chs.md index 8968f0a..ccac184 100644 --- a/README-chs.md +++ b/README-chs.md @@ -81,6 +81,7 @@ IDE (IntelliJ) 插件会帮助为 Java 调用方隐藏 `suspend fun downloadImag - 提供 `public annotation class net.mamoe.kjbb.JvmBlockingBridge` - 提供 `internal annotation class net.mamoe.kjbb.GeneratedBlockingBridge`, 由编译器插件自动添加到生成的方法桥上. +- 提供编译后的阻塞式方法桥需要调用的一些库函数. ### 编译器插件 @@ -127,7 +128,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.8.1" + id("net.mamoe.kotlin-jvm-blocking-bridge") version "1.0.0" } ``` @@ -142,7 +143,7 @@ pluginManagement { 本插件会自动添加如下的运行时依赖: ```kotlin -implementation("net.mamoe:kotlin-jvm-blocking-bridge:0.8.1") +implementation("net.mamoe:kotlin-jvm-blocking-bridge:1.0.0") ``` 因此只需要安装插件, 而不需要添加依赖即可使用 diff --git a/README.md b/README.md index 9288a51..89daf1d 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,7 @@ With the help of the IDE plugin, `suspend fun downloadImage` is not visible to J - Provides `public annotation class net.mamoe.kjbb.JvmBlockingBridge` - Provides `internal annotation class net.mamoe.kjbb.GeneratedBlockingBridge` that is added implicitly to generated bridges. +- Provides some internal functions used by generated bridges. ### Compiler plugin @@ -130,7 +131,7 @@ The plugin is ready to use. `build.gradle` or `build.gradle.kts` ```kotlin plugins { - id("net.mamoe.kotlin-jvm-blocking-bridge") version "0.8.1" + id("net.mamoe.kotlin-jvm-blocking-bridge") version "1.0.0" } ``` 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 b60268a..24f3d85 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.8.1" +internal const val JBB_VERSION = "1.0.0" internal const val PLUGIN_ID = "net.mamoe.kotlin-jvm-blocking-bridge-compiler-embeddable" diff --git a/gradle.properties b/gradle.properties index d312df7..b90ec9c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,3 +2,5 @@ kotlin.code.style=official #org.gradle.parallel=true #kotlin.parallel.tasks.in.project=true + +systemProp.org.gradle.internal.publish.checksums.insecure=true \ No newline at end of file