Skip to content

Commit 942e972

Browse files
committed
Tweak sbt-sonatype setup
1 parent 71d1620 commit 942e972

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

build.sbt

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ val versionTagDir = if (projectVersion.endsWith("SNAPSHOT")) "master" else "v."
1616
val _scalaVersions = Seq("2.13.0", "2.12.9")
1717
val _scalaVersion = _scalaVersions.head
1818

19-
crossScalaVersions := _scalaVersions
20-
scalaVersion := _scalaVersion
19+
version := projectVersion
20+
crossScalaVersions := _scalaVersions
21+
scalaVersion := _scalaVersion
22+
publishArtifact := false
23+
skip in publish := true
24+
sonatypeProfileName := "org.scalafx"
2125

2226
lazy val OSName = System.getProperty("os.name") match {
2327
case n if n.startsWith("Linux") => "linux"
@@ -46,10 +50,12 @@ lazy val scalaFXExtras = (project in file("scalafx-extras")).settings(
4650
"-sourcepath", baseDirectory.value.toString,
4751
"-doc-root-content", baseDirectory.value + "/src/main/scala/root-doc.creole",
4852
"-doc-source-url", "https://github.com/SscalaFX-Extras/scalafx-extras/blob/" + versionTagDir + "/scalafx/€{FILE_PATH}.scala"
49-
) ++ (Option(System.getenv("GRAPHVIZ_DOT_PATH")) match {
50-
case Some(path) => Seq("-diagrams", "-diagrams-dot-path", path)
51-
case None => Seq.empty[String]
52-
})
53+
),
54+
scalacOptions in(Compile, doc) ++= (
55+
Option(System.getenv("GRAPHVIZ_DOT_PATH")) match {
56+
case Some(path) => Seq("-diagrams", "-diagrams-dot-path", path)
57+
case None => Seq.empty[String]
58+
})
5359
)
5460

5561
// ScalaFX Extras Demos project

0 commit comments

Comments
 (0)