Skip to content

Commit

Permalink
beta3 了都,大哥你别再出问题了
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Dec 23, 2023
1 parent 232dc32 commit 92d52bd
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/IProject.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,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, 6, 0) - version("beta2")
override val version: Version = version(0, 6, 0) - version("beta3")

override val homepage: String get() = HOMEPAGE

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import love.forte.gradle.common.core.Gpg
import love.forte.gradle.common.core.project.setup
import love.forte.gradle.common.core.property.systemProp
import love.forte.gradle.common.publication.configure.multiplatformConfigPublishing
import love.forte.gradle.common.publication.configure.*

plugins {
id("org.jetbrains.dokka")
Expand Down Expand Up @@ -43,6 +43,43 @@ multiplatformConfigPublishing {

}

val config = MavenMultiplatformPublishingConfigExtensions().apply {
project = IProject
val jarJavadoc by tasks.registering(Jar::class) {
group = "documentation"
archiveClassifier.set("javadoc")
}
artifact(jarJavadoc)
isSnapshot = project.version.toString().contains("SNAPSHOT", true)
releasesRepository = ReleaseRepository
snapshotRepository = SnapshotRepository
gpg = Gpg.ofSystemPropOrNull()

if (systemProp("SIMBOT_LOCAL").toBoolean()) {
logger.info("Is 'SIMBOT_LOCAL', mainHost set as null")
mainHost = null
}

mainHostSupportedTargets += setOf("wasm_js")
}

publishing {
commonConfigPublishingRepositories(config)
publications {
withType<MavenPublication> {
commonConfigMavenPublication(project, config)
}
}
commonPublicationSignConfig(config)

if (config.mainHost != null) {

}
}




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

0 comments on commit 92d52bd

Please sign in to comment.