diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index 3f035b5..6f87afb 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -8,7 +8,7 @@ repositories { gradlePluginPortal() } -val kotlinVersion = "1.8.21" +val kotlinVersion = "1.9.0" val dokkaPluginVersion = "1.8.20" val gradleCommon = "0.0.11" diff --git a/buildSrc/src/main/kotlin/IProject.kt b/buildSrc/src/main/kotlin/IProject.kt index 2492bb3..6e86740 100644 --- a/buildSrc/src/main/kotlin/IProject.kt +++ b/buildSrc/src/main/kotlin/IProject.kt @@ -8,7 +8,7 @@ object IProject : ProjectDetail() { const val DESCRIPTION = "Generate platform-compatible functions for Kotlin suspend functions" const val HOMEPAGE = "https://github.com/ForteScarlet/kotlin-suspend-transform-compiler-plugin" - override val version: Version = version(0, 4, 0) + override val version: Version = version(0, 5, 0) override val homepage: String get() = HOMEPAGE diff --git a/compiler/suspend-transform-plugin/build.gradle.kts b/compiler/suspend-transform-plugin/build.gradle.kts index d8502ea..64292ab 100644 --- a/compiler/suspend-transform-plugin/build.gradle.kts +++ b/compiler/suspend-transform-plugin/build.gradle.kts @@ -40,7 +40,7 @@ dependencies { } val compileKotlin: KotlinCompile by tasks -compileKotlin.kotlinOptions.freeCompilerArgs += listOf("-Xjvm-default=enable", "-opt-in=kotlin.RequiresOptIn") +compileKotlin.kotlinOptions.freeCompilerArgs += listOf("-Xjvm-default=all", "-opt-in=kotlin.RequiresOptIn") repositories { maven { diff --git a/runtime/suspend-transform-annotation/src/commonMain/kotlin/love/forte/plugin/suspendtrans/annotation/SuspendTransformAnnotation.kt b/runtime/suspend-transform-annotation/src/commonMain/kotlin/love/forte/plugin/suspendtrans/annotation/SuspendTransformAnnotation.kt index 048792b..fccf6dd 100644 --- a/runtime/suspend-transform-annotation/src/commonMain/kotlin/love/forte/plugin/suspendtrans/annotation/SuspendTransformAnnotation.kt +++ b/runtime/suspend-transform-annotation/src/commonMain/kotlin/love/forte/plugin/suspendtrans/annotation/SuspendTransformAnnotation.kt @@ -100,7 +100,7 @@ public expect annotation class JvmAsync( * 只有函数没有参数时有效。 * */ - actual val asProperty: Boolean = false + val asProperty: Boolean = false ) @@ -108,4 +108,4 @@ public expect annotation class JvmAsync( @Target(AnnotationTarget.FUNCTION, AnnotationTarget.CLASS) @Retention(AnnotationRetention.BINARY) @OptionalExpectation -public expect annotation class JsPromise() \ No newline at end of file +public expect annotation class JsPromise() diff --git a/suspend-transform-plugin-sample/build.gradle.kts b/suspend-transform-plugin-sample/build.gradle.kts index 34e2533..48eeac6 100644 --- a/suspend-transform-plugin-sample/build.gradle.kts +++ b/suspend-transform-plugin-sample/build.gradle.kts @@ -16,7 +16,7 @@ plugins { } dependencies { //this.implementation() - classpath("love.forte.plugin.suspend-transform:suspend-transform-plugin-gradle:0.4.0") + classpath("love.forte.plugin.suspend-transform:suspend-transform-plugin-gradle:0.5.0") } }