fix sbt publish have no maven-metadata

This commit is contained in:
A.C.Sukazyo Eyre 2023-12-12 17:12:02 +08:00
parent ac828d777d
commit 20f2a05ee0
Signed by: Eyre_S
GPG Key ID: C17CE40291207874
4 changed files with 38 additions and 17 deletions

View File

@ -1,15 +1,8 @@
[book]: https://book.sukazyo.cc/morny [book]: https://book.sukazyo.cc/morny
[tg-account]: https://t.me/morny_cono_annie_bot [//]: # ([tg-account]: https://t.me/morny_cono_annie_bot)
[issues]: https://github.com/Eyre-S/Coeur-Morny-Cono/issues [//]: # ([issues]: https://github.com/Eyre-S/Coeur-Morny-Cono/issues)
[todo]: https://github.com/users/Eyre-S/projects/1 [//]: # ([todo]: https://github.com/users/Eyre-S/projects/1)
[artifact]: https://mvn.sukazyo.cc/#/releases/cc/sukazyo/morny-coeur [//]: # ([artifact]: https://mvn.sukazyo.cc/#/releases/cc/sukazyo/morny-coeur)
[scala]: https://www.scala-lang.org/
[spotbugs]: https://spotbugs.github.io/
[tg4j]: https://github.com/pengrad/java-telegram-bot-api
[okhttp]: https://square.github.io/okhttp/
[gson]: https://github.com/google/gson
[scalatest]: https://scalatest.org/
<div align=center> <div align=center>
@ -21,9 +14,23 @@
一个 telegram 上的服侍 A.C.Sukazyo Eyre 和它的花宫成员的 bot 内核 一个 telegram 上的服侍 A.C.Sukazyo Eyre 和它的花宫成员的 bot 内核
[Task Listing][todo] | [~~BBS~~][issues] | [Published][artifact] [//]: # ([Task Listing][todo] | [~~BBS~~][issues] | [Published][artifact])
[badge_release_img]: https://img.shields.io/github/v/release/Eyre-S/Coeur-Morny-Cono?display_name=release&label=latest&color=#00fa9a
[badge_release_target]: https://mvn.sukazyo.cc/#/releases/cc/sukazyo/morny-coeur
[badge_tests_img]: https://img.shields.io/github/actions/workflow/status/Eyre-S/Coeur-Morny-Cono/test?label=Tests&color=dark-green
[badge_snapshot_img]: https://img.shields.io/maven-metadata/v?metadataUrl=https%3A%2F%2Fmvn.sukazyo.cc%2Fsnapshots%2Fcc%2Fsukazyo%2Fmorny-coeur%2Fmaven-metadata.xml&label=snapshots&color=%231e90ff
[badge_snapshot_target]: https://mvn.sukazyo.cc/#/snapshots/cc/sukazyo/morny-coeur
[![GitHub release][badge_release_img]][badge_release_target]
![GitHub Workflow Status of test][badge_tests_img]
[![Maven metadata of snapshots][badge_snapshot_img]][badge_snapshot_target]
**[说明书][book] | [FindInTelegram][tg-account]** [//]: # (**[说明书][book] | [FindInTelegram][tg-account]**)
[badge_handbook_img]: https://img.shields.io/website?url=https%3A%2F%2Fbook.sukazyo.cc%2Fmorny&up_message=0.8.0.11*PUTIAN&up_color=7b68ee&down_message=%E4%B8%8D%E5%8F%AF%E7%94%A8&down_color=dc143c&label=%E8%AF%B4%E6%98%8E%E4%B9%A6
[badge_handbook_target]: https://book.sukazyo.cc/morny
[badge_telegram_img]: https://img.shields.io/website?url=https%3A%2F%2Ft.me%2Fmorny_cono_annie_bot&up_message=%40morny_cono_annie_bot&up_color=28a8ea&down_message=unavailable&down_color=red&logo=telegram&label=Telegram
[badge_telegram_target]: https://t.me/morny_cono_annie_bot
[![Handbook][badge_handbook_img]][badge_handbook_target]
[![Telegram][badge_telegram_img]][badge_telegram_target]
<br> <br>
@ -33,10 +40,20 @@
### Libraries Used ### Libraries Used
[scala]: https://www.scala-lang.org/
[spotbugs]: https://spotbugs.github.io/
[tg4j]: https://github.com/pengrad/java-telegram-bot-api
[okhttp]: https://square.github.io/okhttp/
[gson]: https://github.com/google/gson
[sttp]: https://github.com/softwaremill/sttp
[circe]: https://circe.github.io/circe/
[jsoup]: https://jsoup.org/
[cron-utils]: http://cron-parser.com/
[scalatest]: https://scalatest.org/
[Java Telegram Bot API][tg4j] [Java Telegram Bot API][tg4j]
[sttp] | [okhttp] | [Gson] | [circe] | [jsoup] | [cron-utils]
[okhttp] | [Gson][gson]
[Scala][scala] | [SpotBugs Annotations][spotbugs] | [ScalaTest][scalatest] [Scala][scala] | [SpotBugs Annotations][spotbugs] | [ScalaTest][scalatest]

View File

@ -1,3 +1,5 @@
aether.AetherKeys.aetherOldVersionMethod := true
ThisBuild / organization := "cc.sukazyo" ThisBuild / organization := "cc.sukazyo"
ThisBuild / organizationName := "A.C. Sukazyo Eyre" ThisBuild / organizationName := "A.C. Sukazyo Eyre"

View File

@ -8,7 +8,7 @@ object MornyConfiguration {
val MORNY_CODE_STORE = "https://github.com/Eyre-S/Coeur-Morny-Cono" val MORNY_CODE_STORE = "https://github.com/Eyre-S/Coeur-Morny-Cono"
val MORNY_COMMIT_PATH = "https://github.com/Eyre-S/Coeur-Morny-Cono/commit/%s" val MORNY_COMMIT_PATH = "https://github.com/Eyre-S/Coeur-Morny-Cono/commit/%s"
val VERSION = "2.0.0-alpha1" val VERSION = "2.0.0-alpha1.1"
val VERSION_DELTA: Option[String] = None val VERSION_DELTA: Option[String] = None
val CODENAME = "guanggu" val CODENAME = "guanggu"
@ -51,7 +51,7 @@ object MornyConfiguration {
case true => Some("-ws-snapshots" at "https://mvn.sukazyo.cc/snapshots") case true => Some("-ws-snapshots" at "https://mvn.sukazyo.cc/snapshots")
case false => Some("-ws-releases" at "https://mvn.sukazyo.cc/releases") case false => Some("-ws-releases" at "https://mvn.sukazyo.cc/releases")
} }
// Some(Resolver.file("build", file("./target/artifacts"))) // Some(Resolver.file("build", file("S:/__tests/artifacts")))
// None // None
} }
val publishCredentials: Seq[Credentials] = { val publishCredentials: Seq[Credentials] = {

View File

@ -1,3 +1,5 @@
addSbtPlugin("no.arktekk.sbt" % "aether-deploy" % "0.29.1")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0") addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0")
addSbtPlugin("com.github.sbt" % "sbt-git" % "2.0.1") addSbtPlugin("com.github.sbt" % "sbt-git" % "2.0.1")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "2.1.5") addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "2.1.5")