Skip to content

Commit

Permalink
Merge pull request #7 from simple-robot/dev/main
Browse files Browse the repository at this point in the history
Release: v0.0.2
  • Loading branch information
ForteScarlet authored Apr 27, 2024
2 parents f351022 + 413f326 commit 3252f21
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 8 deletions.
12 changes: 12 additions & 0 deletions .changelog/v0.0.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
> 对应核心版本: [**v4.0.0-beta3**](https://github.com/simple-robot/simpler-robot/releases/tag/v4.0.0-beta3)

我们欢迎并期望着您的的[反馈](https://github.com/simple-robot/simbot-component-telegram/issues)[协助](https://github.com/simple-robot/simbot-component-telegram/pulls)
感谢您的贡献与支持!

也欢迎您为我们献上一颗 `star`,这是对我们最大的鼓励与认可!

> [!warning]
> **目前版本处于 `dev` 阶段,代表此版本是一个开发预览版,可能不稳定、可能随时发生更改、且不保证可用性。**
现在可以简单的发送图片、文档、音频等资源性消息元素了。
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) - v("dev2")
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 3252f21

Please sign in to comment.