Skip to content

Commit

Permalink
Configure sbt sonatype
Browse files Browse the repository at this point in the history
  • Loading branch information
voidcontext committed Mar 16, 2020
1 parent 559886e commit e19bddd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ ThisBuild / name := "fetch-file"
ThisBuild / scalaVersion := "2.13.1"
ThisBuild / organization := "com.gaborpihaj"

// Publish config
ThisBuild / dynverSonatypeSnapshots := true
ThisBuild / publishTo := sonatypePublishToBundle.value
ThisBuild / licenses += ("MIT", url("http://opensource.org/licenses/MIT"))

lazy val fetchfile = (project in file("fetch-file"))
.settings(
libraryDependencies ++= Seq(
Expand All @@ -16,7 +21,13 @@ lazy val fetchfile = (project in file("fetch-file"))
)

lazy val examples = (project in file("examples"))
.settings(
skip in publish := true,
)
.dependsOn(fetchfile)

lazy val root = (project in file("."))
.settings(
skip in publish := true,
)
.aggregate(fetchfile, examples)
4 changes: 4 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.11")

addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.0.0")

addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.8.1")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.0")


0 comments on commit e19bddd

Please sign in to comment.