Skip to content

Commit

Permalink
Merge pull request #738 from simple-robot/upgrade-kt-190
Browse files Browse the repository at this point in the history
build: 更新Kotlin到 1.9.10; 优化针对Java的异步桥接函数的内部实现
  • Loading branch information
ForteScarlet authored Aug 30, 2023
2 parents f2490be + fa224fd commit d017031
Show file tree
Hide file tree
Showing 14 changed files with 316 additions and 559 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/kdoc.yml.bk
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Gradle generate documentation
uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.6
gradle-version: 8.3
arguments: |
-Porg.gradle.jvmargs="-XX:MaxMetaspaceSize=1g -Dfile.encoding=UTF-8"
-Porg.gradle.daemon=false
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ jobs:
- name: Run All Tests
uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.6
gradle-version: 8.3
arguments: clean assemble test

# setup Gradle
- name: Gradle Publish Release
uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.6
gradle-version: 8.3
arguments: |
publishToSonatype
closeAndReleaseStagingRepository
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
- name: Gradle publish snapshot
uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.6
gradle-version: 8.3
arguments: |
publishToSonatype
closeAndReleaseStagingRepository
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
- name: Gradle generate documentation
uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.6
gradle-version: 8.3
arguments: |
dokkaHtmlMultiModule
--info
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ jobs:
- name: Run All Tests
uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.6
gradle-version: 8.3
arguments: assemble allTests

- name: Gradle publish snapshot
uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.6
gradle-version: 8.3
arguments: |
publishToSonatype
closeAndReleaseStagingRepository
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
- name: Gradle generate documentation
uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.6
gradle-version: 8.3
arguments: |
dokkaHtmlMultiModule
--info
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Run All Tests
uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.6
gradle-version: 8.3
arguments: |
assemble
build
Expand Down
4 changes: 2 additions & 2 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ repositories {
mavenLocal()
}

val kotlinVersion = "1.8.21"
val kotlinVersion = "1.9.10"
val dokkaPluginVersion = "1.8.20"
val suspendTransformVersion = "0.3.1"
val suspendTransformVersion = "0.5.0"
val gradleCommon = "0.1.1"
val ktor = "2.3.1"

Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/P.kt
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ sealed class P(override val group: String) : ProjectDetail() {
val versionWithoutSnapshot: Version

init {
val mainVersion = version(3, 2, 0)
val mainVersion = version(3, 3, 0)

fun initVersionWithoutSnapshot(status: Version?): Version = if (status == null) {
mainVersion
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/SuspendTransforms.kt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ object SuspendTransforms {
*/
val jvmAsyncTransformer = SuspendTransformConfiguration.jvmAsyncTransformer.copy(
syntheticFunctionIncludeAnnotations = includeAnnotations,
transformFunctionInfo = FunctionInfo("love.forte.simbot.utils", null, "$\$runInAsync1"),
transformFunctionInfo = FunctionInfo("love.forte.simbot.utils", null, "$\$runInAsyncNullable"),
copyAnnotationExcludes = SuspendTransformConfiguration.jvmAsyncTransformer.copyAnnotationExcludes + SuspendTransformConfiguration.jvmAsyncTransformer.markAnnotation.classInfo
)

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit d017031

Please sign in to comment.