Skip to content

Commit

Permalink
release: v0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Apr 27, 2024
1 parent debd0e6 commit 413f326
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
File renamed without changes.
3 changes: 1 addition & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: Run test and publish
strategy:
matrix:
os: [ macos-latest, windows-latest, ubuntu-latest ]
os: [ macos-latest, ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
# 检出仓库代码
Expand Down Expand Up @@ -56,7 +56,6 @@ jobs:
-x test
--build-cache
-Porg.gradle.jvmargs="-Xmx8g -Xms2g -XX:MaxMetaspaceSize=1g -Dfile.encoding=UTF-8"
-Porg.gradle.daemon=false
env:
SIMBOT_IS_SNAPSHOT: false
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 @@ -44,7 +44,7 @@ object P {
override val homepage: String get() = HOMEPAGE


private val baseVersion = v(0, 0, 1)
private val baseVersion = v(0, 0, 2)

val snapshotVersion = baseVersion - Version.SNAPSHOT
override val version = if (isSnapshot()) snapshotVersion else baseVersion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ val p = project
multiplatformConfigPublishing {
project = P.ComponentTelegram
isSnapshot = project.version.toString().contains("SNAPSHOT", true)
releasesRepository = ReleaseRepository
snapshotRepository = SnapshotRepository
gpg = Gpg.ofSystemPropOrNull()

// publishing {
// publications.withType<MavenPublication> {
Expand All @@ -53,8 +56,9 @@ multiplatformConfigPublishing {
group = "documentation"
archiveClassifier.set("javadoc")
if (!(isSnapshot || isSnapshot() || isSimbotLocal())) {
archiveClassifier.set("javadoc")
from(tasks.findByName("dokkaHtml"))
dependsOn(tasks.dokkaHtml)
from(tasks.dokkaHtml.flatMap { it.outputDirectory })
// from(tasks.findByName("dokkaHtml"))
}
}

Expand All @@ -72,11 +76,9 @@ multiplatformConfigPublishing {
// }

artifact(jarJavadoc)
releasesRepository = ReleaseRepository
snapshotRepository = SnapshotRepository
gpg = Gpg.ofSystemPropOrNull()

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

Expand All @@ -95,6 +97,7 @@ tasks.withType<PublishToMavenRepository>().configureEach {
// And: https://youtrack.jetbrains.com/issue/KT-46466
tasks.withType<Sign>().configureEach {
val pubName = name.removePrefix("sign").removeSuffix("Publication")
logger.info("config Sign with pubName {}", pubName)

// These tasks only exist for native targets, hence findByName() to avoid trying to find them for other targets

Expand All @@ -106,6 +109,9 @@ tasks.withType<Sign>().configureEach {
tasks.findByName("compileTestKotlin$pubName")?.let {
mustRunAfter(it)
}

logger.info("linkDebugTest{}", pubName)
logger.info("compileTestKotlin{}", pubName)
}

show()
Expand Down

0 comments on commit 413f326

Please sign in to comment.