Skip to content

Commit

Permalink
fix: 尝试修复无法发布快照的问题
Browse files Browse the repository at this point in the history
Signed-off-by: ForteScarlet <[email protected]>
  • Loading branch information
ForteScarlet committed Sep 26, 2023
1 parent a0b7e11 commit d2c79ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

import love.forte.gradle.common.core.Gpg
import love.forte.gradle.common.core.property.systemProp
import love.forte.gradle.common.publication.configure.MavenMultiplatformPublishingConfigExtensions
import love.forte.gradle.common.publication.configure.multiplatformConfigPublishing
import org.jetbrains.kotlin.konan.target.HostManager
import org.jetbrains.kotlin.konan.target.KonanTarget
Expand Down Expand Up @@ -77,6 +76,12 @@ multiplatformConfigPublishing {

}

// TODO see https://github.com/gradle-nexus/publish-plugin/issues/208#issuecomment-1465029831
val signingTasks: TaskCollection<Sign> = tasks.withType<Sign>()
tasks.withType<PublishToMavenRepository>().configureEach {
mustRunAfter(signingTasks)
}

fun KonanTarget.supports(hostManager: HostManager): Set<String> {
return hostManager.enabledByHost[this]?.mapTo(mutableSetOf()) { target -> target.name } ?: emptySet()
}
Expand Down
1 change: 0 additions & 1 deletion simbot-api/src/test/kotlin/TimestampTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@ class TimestampTest {

assert(newList.first() === Timestamp.NotSupport)
}

}

0 comments on commit d2c79ec

Please sign in to comment.