Skip to content

Commit 41c3fc7

Browse files
committed
Enabled publishing
1 parent a16f283 commit 41c3fc7

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

build.sbt

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,20 +115,23 @@ lazy val core = crossProject(JVMPlatform, JSPlatform)
115115
autoAPIMappings := true,
116116
buildInfoPackage := "scodec.bits",
117117
buildInfoKeys := Seq[BuildInfoKey](version, scalaVersion, gitHeadCommit),
118+
publishArtifact in (Compile, packageDoc) := !isDotty.value,
118119
scalacOptions in (Compile, doc) := {
119120
val tagOrBranch = {
120121
if (version.value.endsWith("SNAPSHOT")) gitCurrentBranch.value
121122
else ("v" + version.value)
122123
}
123-
Seq(
124-
"-groups",
125-
"-implicits",
126-
"-implicits-show-all",
127-
"-sourcepath",
128-
new File(baseDirectory.value, "../..").getCanonicalPath,
129-
"-doc-source-url",
130-
"https://github.com/scodec/scodec-bits/tree/" + tagOrBranch + "€{FILE_PATH}.scala"
131-
)
124+
if (isDotty.value) Nil
125+
else
126+
Seq(
127+
"-groups",
128+
"-implicits",
129+
"-implicits-show-all",
130+
"-sourcepath",
131+
new File(baseDirectory.value, "../..").getCanonicalPath,
132+
"-doc-source-url",
133+
"https://github.com/scodec/scodec-bits/tree/" + tagOrBranch + "€{FILE_PATH}.scala"
134+
)
132135
},
133136
scalacOptions in (Compile, console) ~= {
134137
_.filterNot { o =>

0 commit comments

Comments
 (0)