Skip to content

Commit 2c56f99

Browse files
committed
Set sonatypeProfileName on projects, not globally
1 parent 07681d6 commit 2c56f99

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build.sbt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ lazy val scala212 = "2.12.15"
2424
lazy val scala3 = "3.1.2"
2525
lazy val supportedScalaVersions = List(scala213, scala212, scala3)
2626

27+
lazy val publishing = Seq(
28+
organization := "com.indoorvivants.vcpkg",
29+
sonatypeProfileName := "com.indoorvivants"
30+
)
31+
2732
lazy val root = project
2833
.in(file("."))
2934
.aggregate(
@@ -36,6 +41,7 @@ lazy val root = project
3641
lazy val core = projectMatrix
3742
.jvmPlatform(scalaVersions = supportedScalaVersions)
3843
.in(file("core"))
44+
.settings(publishing)
3945
.settings(
4046
name := "vcpkg-core",
4147
crossScalaVersions := supportedScalaVersions,
@@ -48,6 +54,7 @@ lazy val `sbt-plugin` = projectMatrix
4854
.in(file("sbt-plugin"))
4955
.dependsOn(core)
5056
.enablePlugins(ScriptedPlugin)
57+
.settings(publishing)
5158
.settings(
5259
name := """sbt-vcpkg""",
5360
sbtPlugin := true,
@@ -63,6 +70,7 @@ lazy val `mill-plugin` = projectMatrix
6370
.jvmPlatform(scalaVersions = Seq(scala213))
6471
.in(file("mill-plugin"))
6572
.dependsOn(core)
73+
.settings(publishing)
6674
.settings(
6775
name := """mill-vcpkg""",
6876
libraryDependencies += "com.lihaoyi" %% "mill-scalalib" % "0.10.4",

0 commit comments

Comments
 (0)