Skip to content

Commit 0dd02fd

Browse files
committed
build: Sonatype Central Portalへのリリース設定を更新
- organizationをio.github.j5ik2oに変更 - sbt-ci-releaseからsbt-pgpとsbt-dynverに移行 - ThisBuildスコープでpublish設定を追加 - ルートプロジェクトのpublishをスキップ
1 parent 3031d9d commit 0dd02fd

File tree

2 files changed

+32
-13
lines changed

2 files changed

+32
-13
lines changed

build.sbt

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
import Dependencies._
22

3+
// ThisBuild settings for publishing
4+
ThisBuild / organization := "io.github.j5ik2o"
5+
ThisBuild / organizationName := "io.github.j5ik2o"
6+
ThisBuild / homepage := Some(url("https://github.com/j5ik2o/docker-controller-scala"))
7+
ThisBuild / licenses := List("The MIT License" -> url("http://opensource.org/licenses/MIT"))
8+
ThisBuild / developers := List(
9+
Developer(
10+
id = "j5ik2o",
11+
name = "Junichi Kato",
12+
email = "j5ik2o@gmail.com",
13+
url = url("https://blog.j5ik2o.me")
14+
)
15+
)
16+
ThisBuild / scmInfo := Some(
17+
ScmInfo(
18+
url("https://github.com/j5ik2o/docker-controller-scala"),
19+
"scm:git@github.com:j5ik2o/docker-controller-scala.git"
20+
)
21+
)
22+
ThisBuild / dynverSonatypeSnapshots := true
23+
ThisBuild / dynverSeparator := "-"
24+
ThisBuild / publishMavenStyle := true
25+
ThisBuild / pomIncludeRepository := (_ => false)
26+
ThisBuild / credentials += Credentials(Path.userHome / ".sbt" / "1.0" / "sonatype_credentials")
27+
328
def crossScalacOptions(scalaVersion: String): Seq[String] = CrossVersion.partialVersion(scalaVersion) match {
429
case Some((3L, _)) =>
530
Seq(
@@ -17,17 +42,6 @@ def crossScalacOptions(scalaVersion: String): Seq[String] = CrossVersion.partial
1742
}
1843

1944
lazy val baseSettings = Seq(
20-
organization := "com.github.j5ik2o",
21-
homepage := Some(url("https://github.com/j5ik2o/docker-controller-scala")),
22-
licenses := List("The MIT License" -> url("http://opensource.org/licenses/MIT")),
23-
developers := List(
24-
Developer(
25-
id = "j5ik2o",
26-
name = "Junichi Kato",
27-
email = "j5ik2o@gmail.com",
28-
url = url("https://blog.j5ik2o.me")
29-
)
30-
),
3145
scalaVersion := Versions.scala213Version,
3246
crossScalaVersions := Seq(Versions.scala212Version, Versions.scala213Version, Versions.scala3Version),
3347
javacOptions ++= Seq("-source", "17", "-target", "17"),
@@ -258,7 +272,10 @@ val `docker-controller-scala-localstack` = (project in file("docker-controller-s
258272

259273
val `docker-controller-scala-root` = (project in file("."))
260274
.settings(baseSettings)
261-
.settings(name := "docker-controller-scala-root")
275+
.settings(
276+
name := "docker-controller-scala-root",
277+
publish / skip := true
278+
)
262279
.aggregate(
263280
`docker-controller-scala-core`,
264281
`docker-controller-scala-scalatest`,

project/plugins.sbt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.5")
22

3-
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.11.2")
3+
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.1")
4+
5+
addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.1.1")
46

57
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.7")
68

0 commit comments

Comments
 (0)