Skip to content

Commit 7e28fe1

Browse files
committed
Correct sbt-sonatype publishing configuration
1 parent e5ca81e commit 7e28fe1

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

build.sbt

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ lazy val scalaFXExtrasSettings = Seq(
124124
},
125125
autoAPIMappings := true,
126126
manifestSetting,
127-
publishTo := sonatypePublishToBundle.value,
128127
fork in run := true,
129128
fork in Test := true,
130129
parallelExecution in Test := false,
@@ -152,22 +151,19 @@ lazy val manifestSetting = packageOptions += {
152151
)
153152
}
154153

154+
import xerial.sbt.Sonatype._
155+
155156
// Metadata needed by Maven Central
156157
// See also http://maven.apache.org/pom.html#Developers
157158
lazy val mavenCentralSettings = Seq(
158159
homepage := Some(new URL("http://www.scalafx.org/")),
159160
startYear := Some(2016),
160161
licenses := Seq(("BSD", new URL("https://github.com/scalafx/scalafx-extras/blob/master/LICENSE.txt"))),
161-
pomExtra :=
162-
<scm>
163-
<url>https://github.com/scalafx/scalafx-extras</url>
164-
<connection>scm:git:https://github.com/scalafx/scalafx-extras.git</connection>
165-
</scm>
166-
<developers>
167-
<developer>
168-
<id>jpsacha</id>
169-
<name>Jarek Sacha</name>
170-
<url>https://github.com/jpsacha</url>
171-
</developer>
172-
</developers>
162+
sonatypeProfileName := "org.scalafx",
163+
sonatypeProjectHosting := Some(GitHubHosting("org.scalafx", "scalafx-extras", "[email protected]")),
164+
publishMavenStyle := true,
165+
publishTo := sonatypePublishToBundle.value,
166+
developers := List(
167+
Developer(id="jpsacha", name="Jarek Sacha", email="[email protected]", url=url("https://github.com/jpsacha"))
168+
)
173169
)

0 commit comments

Comments
 (0)