Skip to content

Commit

Permalink
Release 1.0
Browse files Browse the repository at this point in the history
Published on maven central in group "com.github.arthur-bit-monnot"
  • Loading branch information
arbimo committed Jul 17, 2017
1 parent 4773bcd commit 83de8d3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
22 changes: 19 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name := "fape-build"

// global settings
val _organization = "com.github.arthur-bit-monnot"
val _version = "1.0-SNAPSHOT"
val _version = "1.0"
val _scalaVersion = "2.12.2"


Expand All @@ -28,14 +28,24 @@ lazy val commonSettings = Seq(
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
},
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.1" % "test"
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.1" % "test",
// To sync with Maven central, you need to supply the following information:
publishMavenStyle := true,

// POM settings for Sonatype
homepage := Some(url("https://github.com/arthur-bit-monnot/fape")),
scmInfo := Some(ScmInfo(url("https://github.com/arthur-bit-monnot/fape"), "[email protected]:arthur-bit-monnot/fape.git")),
developers += Developer("abitmonn", "Arthur Bit-Monnot", "[email protected]", url("https://github.com/arthur-bit-monnot")),
licenses += ("BSD-2-Clause", url("https://opensource.org/licenses/BSD-2-Clause")),
pomIncludeRepository := (_ => false)
)

lazy val root = project.in(file(".")).
aggregate(fapePlanning).

settings(
publish := {},

publishLocal := {}
)

Expand Down Expand Up @@ -78,4 +88,10 @@ packJvmOpts := Map(
"fape" -> Seq("-ea")
)


// Add sonatype repository settings
publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
)
6 changes: 5 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ addSbtPlugin("org.xerial.sbt" % "sbt-pack" % "0.6.5")

addSbtPlugin("org.scala-sbt.plugins" % "sbt-onejar" % "0.8")

addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.1")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.1")

// for publishing to sonatype / maven-central
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "1.1")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")

0 comments on commit 83de8d3

Please sign in to comment.