Skip to content

Commit d80da0e

Browse files
committed
Correct glitch with sonatypeProfileName
1 parent 4c35381 commit d80da0e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

build.sbt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ val _javaFXVersion = "17.0.1"
1919
ThisBuild / version := projectVersion
2020
ThisBuild / crossScalaVersions := _scalaVersions
2121
ThisBuild / scalaVersion := _scalaVersion
22-
ThisBuild / sonatypeProfileName := "org.scalafx"
22+
ThisBuild / organization := "org.scalafx"
2323

2424
publishArtifact := false
2525
publish / skip := true
@@ -104,10 +104,6 @@ resolvers += Resolver.sonatypeRepo("snapshots")
104104

105105
// Common settings
106106
lazy val scalaFXExtrasSettings = Seq(
107-
organization := "org.scalafx",
108-
version := projectVersion,
109-
crossScalaVersions := _scalaVersions,
110-
scalaVersion := _scalaVersion,
111107
// SAdd version specific directories
112108
Compile / unmanagedSourceDirectories += (Compile / sourceDirectory).value / versionSubDir(scalaVersion.value),
113109
Test / unmanagedSourceDirectories += (Test / sourceDirectory).value / versionSubDir(scalaVersion.value),
@@ -184,7 +180,8 @@ lazy val scalaFXExtrasSettings = Seq(
184180
else
185181
Seq.empty[sbt.ModuleID]
186182
),
187-
// Use `pomPostProcess` to remove dependencies marked as "provided" from publishing in POM
183+
sonatypeProfileName := "org.scalafx",
184+
// Use `pomPostProcess` to remove dependencies marked as "provided" from publishing in POM
188185
// This is to avoid dependency on wrong OS version JavaFX libraries
189186
// See also [https://stackoverflow.com/questions/27835740/sbt-exclude-certain-dependency-only-during-publish]
190187
pomPostProcess := { node: XmlNode =>

0 commit comments

Comments
 (0)