Skip to content

Commit

Permalink
Add 'publishTo in ThisBuild' to fix 'Repository for publishing is not…
Browse files Browse the repository at this point in the history
… specified' error when publishing to sonatype
  • Loading branch information
carymrobbins committed Jul 20, 2019
1 parent ad3df91 commit 2f20c5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ lazy val releasePublishSettings = Seq(
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := { _ => false },
publishTo := {
publishTo in ThisBuild := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
Expand Down

0 comments on commit 2f20c5b

Please sign in to comment.