sbt sonatypeRelease:项目 URL 缺失,SCM URL 缺失,开发者信息缺失

问题描述 投票:0回答:1

尝试

sbt sonatypeRelease
库会出现此错误:

2024-01-26 18:42:35.491+0300  info [SonatypeClient]     Failed: pom-staging, failureMessage:Invalid POM: /io/github/omitted/omitted_sjs1_3/0.3.6/omitted_sjs1_3-0.3.6.pom: Project URL missing, SCM URL missing, Developer information missing  - (SonatypeClient.scala:389)

需要将什么设置键放入我的

build.sbt
来解决这个问题?

scala sbt sonatype sbt-sonatype
1个回答
0
投票

您需要在 SBT 定义中添加以下设置(通常为

build.sbt
):

// Project URL
ThisBuild / homepage := Some(url("https://yourwebsite.com"))

// SCM
ThisBuild / scmInfo := Some(
  ScmInfo(
    url("https://github.com/company/project"),
    "scm:[email protected]:company/project.git"
  )
)

// Developers 
ThisBuild / developers := List(Developer(...))

// License (example)
ThisBuild / licenses := List("MIT" -> url("http://opensource.org/licenses/MIT"))
© www.soinside.com 2019 - 2024. All rights reserved.