Skip to content

Commit 3527189

Browse files
committed
[2.0.6] 修复 Coroutines 重定向异常
1 parent bab5696 commit 3527189

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins {
88
}
99

1010
group = "io.izzel.taboolib"
11-
version = "2.0.5"
11+
version = "2.0.6"
1212

1313
configurations {
1414
create("embed") {

src/main/groovy/io/izzel/taboolib/gradle/TabooLibPlugin.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ class TabooLibPlugin implements Plugin<Project> {
8080
}
8181

8282
def kotlinVersion = KotlinPluginWrapperKt.getKotlinPluginVersion(project).replaceAll("[._-]", "")
83+
def coroutinesVersion = tabooExt.version.coroutines.replaceAll("[._-]", "")
84+
8385
def jarTask = project.tasks.jar as Jar
8486
tabooTask.configure { TabooLibMainTask task ->
8587
task.tabooExt = tabooExt
@@ -96,6 +98,7 @@ class TabooLibPlugin implements Plugin<Project> {
9698
}
9799
if (!tabooExt.version.isSkipKotlinRelocate()) {
98100
task.relocations['kotlin.'] = 'kotlin' + kotlinVersion + '.'
101+
task.relocations['kotlinx.coroutines.'] = 'kotlinx.coroutines' + coroutinesVersion + '.'
99102
}
100103
}
101104
}

0 commit comments

Comments
 (0)