-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
尝试应用编译器插件Kotlin suspend transform
- Loading branch information
Showing
67 changed files
with
802 additions
and
1,238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
**仓库参考:** | ||
|
||
| **模块** | **repo1.maven** | **search.maven** | | ||
|---------|-----------------|------------------| | ||
| simbot-api | [simbot-api: v3.0.0-beta.2](https://repo1.maven.org/maven2/love/forte/simbot/simbot-api/3.0.0-beta.2) | [simbot-api: v3.0.0-beta.2](https://search.maven.org/artifact/love.forte.simbot/simbot-api/3.0.0-beta.2/jar) | | ||
| simbot-core | [simbot-core: v3.0.0-beta.2](https://repo1.maven.org/maven2/love/forte/simbot/simbot-core/3.0.0-beta.2) | [simbot-core: v3.0.0-beta.2](https://search.maven.org/artifact/love.forte.simbot/simbot-core/3.0.0-beta.2/jar) | | ||
| simbot-logger | [simbot-logger: v3.0.0-beta.2](https://repo1.maven.org/maven2/love/forte/simbot/simbot-logger/3.0.0-beta.2) | [simbot-logger: v3.0.0-beta.2](https://search.maven.org/artifact/love.forte.simbot/simbot-logger/3.0.0-beta.2/jar) | | ||
| simboot-api | [simboot-api: v3.0.0-beta.2](https://repo1.maven.org/maven2/love/forte/simbot/boot/simboot-api/3.0.0-beta.2) | [simboot-api: v3.0.0-beta.2](https://search.maven.org/artifact/love.forte.simbot.boot/simboot-api/3.0.0-beta.2/jar) | | ||
| simboot-core | [simboot-core: v3.0.0-beta.2](https://repo1.maven.org/maven2/love/forte/simbot/boot/simboot-core/3.0.0-beta.2) | [simboot-core: v3.0.0-beta.2](https://search.maven.org/artifact/love.forte.simbot.boot/simboot-core/3.0.0-beta.2/jar) | | ||
| simboot-core-annotation | [simboot-core-annotation: v3.0.0-beta.2](https://repo1.maven.org/maven2/love/forte/simbot/boot/simboot-core-annotation/3.0.0-beta.2) | [simboot-core-annotation: v3.0.0-beta.2](https://search.maven.org/artifact/love.forte.simbot.boot/simboot-core-annotation/3.0.0-beta.2/jar) | | ||
| simboot-core-spring-boot-starter | [simboot-core-spring-boot-starter: v3.0.0-beta.2](https://repo1.maven.org/maven2/love/forte/simbot/boot/simboot-core-spring-boot-starter/3.0.0-beta.2) | [simboot-core-spring-boot-starter: v3.0.0-beta.2](https://search.maven.org/artifact/love.forte.simbot.boot/simboot-core-spring-boot-starter/3.0.0-beta.2/jar) | | ||
|
||
<br /> | ||
<br /> | ||
|
||
## 版本变更 | ||
|
||
- `Kotlin` 更新至 `v1.7.10` | ||
- `Kotlinx Coroutines` 更新至 [`v1.6.4`](https://github.com/Kotlin/kotlinx.coroutines/releases/tag/1.6.4) | ||
- `Kotlinx Serialization` 更新至 [`v1.4.0`](https://github.com/Kotlin/kotlinx.serialization/releases/tag/v1.4.0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,6 @@ object V { | |
* Kotlin相关依赖项 | ||
*/ | ||
object Kotlin { | ||
const val VERSION = "1.6.21" | ||
const val VERSION = "1.7.10" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
buildSrc/src/main/kotlin/simbot.suspend-transform-configure.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* Copyright (c) 2022-2022 ForteScarlet <ForteScarlet@163.com> | ||
* | ||
* 本文件是 simply-robot (或称 simple-robot 3.x 、simbot 3.x ) 的一部分。 | ||
* | ||
* simply-robot 是自由软件:你可以再分发之和/或依照由自由软件基金会发布的 GNU 通用公共许可证修改之,无论是版本 3 许可证,还是(按你的决定)任何以后版都可以。 | ||
* | ||
* 发布 simply-robot 是希望它能有用,但是并无保障;甚至连可销售和符合某个特定的目的都不保证。请参看 GNU 通用公共许可证,了解详情。 | ||
* | ||
* 你应该随程序获得一份 GNU 通用公共许可证的复本。如果没有,请看: | ||
* https://www.gnu.org/licenses | ||
* https://www.gnu.org/licenses/gpl-3.0-standalone.html | ||
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html | ||
* | ||
*/ | ||
|
||
import love.forte.plugin.suspendtrans.SuspendTransformConfiguration | ||
|
||
/* | ||
* Copyright (c) 2022 ForteScarlet <ForteScarlet@163.com> | ||
* | ||
* 本文件是 simply-robot (或称 simple-robot 3.x 、simbot 3.x ) 的一部分。 | ||
* | ||
* simply-robot 是自由软件:你可以再分发之和/或依照由自由软件基金会发布的 GNU 通用公共许可证修改之,无论是版本 3 许可证,还是(按你的决定)任何以后版都可以。 | ||
* | ||
* 发布 simply-robot 是希望它能有用,但是并无保障;甚至连可销售和符合某个特定的目的都不保证。请参看 GNU 通用公共许可证,了解详情。 | ||
* | ||
* 你应该随程序获得一份 GNU 通用公共许可证的复本。如果没有,请看: | ||
* https://www.gnu.org/licenses | ||
* https://www.gnu.org/licenses/gpl-3.0-standalone.html | ||
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html | ||
* | ||
*/ | ||
|
||
plugins { | ||
id("love.forte.plugin.suspend-transform") | ||
|
||
} | ||
|
||
suspendTransform { | ||
includeRuntime = false | ||
jvm { | ||
// jvmBlockingMarkAnnotation.functionInheritable = true | ||
// jvmAsyncMarkAnnotation.functionInheritable = true | ||
// api and annotation comes from :apis:simbot-api | ||
val api4JIncludeAnnotation = SuspendTransformConfiguration.IncludeAnnotation("love.forte.simbot.Api4J") | ||
syntheticBlockingFunctionIncludeAnnotations = listOf(api4JIncludeAnnotation) | ||
syntheticAsyncFunctionIncludeAnnotations = listOf(api4JIncludeAnnotation) | ||
jvmBlockingFunctionName = "love.forte.simbot.utils.$\$runInBlocking" | ||
jvmAsyncFunctionName = "love.forte.simbot.utils.$\$runInAsync" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.