Skip to content

Commit 83de8d3

Browse files
committed
Release 1.0
Published on maven central in group "com.github.arthur-bit-monnot"
1 parent 4773bcd commit 83de8d3

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

build.sbt

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name := "fape-build"
22

33
// global settings
44
val _organization = "com.github.arthur-bit-monnot"
5-
val _version = "1.0-SNAPSHOT"
5+
val _version = "1.0"
66
val _scalaVersion = "2.12.2"
77

88

@@ -28,14 +28,24 @@ lazy val commonSettings = Seq(
2828
val oldStrategy = (assemblyMergeStrategy in assembly).value
2929
oldStrategy(x)
3030
},
31-
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.1" % "test"
31+
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.1" % "test",
32+
// To sync with Maven central, you need to supply the following information:
33+
publishMavenStyle := true,
34+
35+
// POM settings for Sonatype
36+
homepage := Some(url("https://github.com/arthur-bit-monnot/fape")),
37+
scmInfo := Some(ScmInfo(url("https://github.com/arthur-bit-monnot/fape"), "git@github.com:arthur-bit-monnot/fape.git")),
38+
developers += Developer("abitmonn", "Arthur Bit-Monnot", "arthur.bit-monnot@laas.fr", url("https://github.com/arthur-bit-monnot")),
39+
licenses += ("BSD-2-Clause", url("https://opensource.org/licenses/BSD-2-Clause")),
40+
pomIncludeRepository := (_ => false)
3241
)
3342

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

3746
settings(
3847
publish := {},
48+
3949
publishLocal := {}
4050
)
4151

@@ -78,4 +88,10 @@ packJvmOpts := Map(
7888
"fape" -> Seq("-ea")
7989
)
8090

81-
91+
// Add sonatype repository settings
92+
publishTo := Some(
93+
if (isSnapshot.value)
94+
Opts.resolver.sonatypeSnapshots
95+
else
96+
Opts.resolver.sonatypeStaging
97+
)

project/plugins.sbt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@ addSbtPlugin("org.xerial.sbt" % "sbt-pack" % "0.6.5")
33

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

6-
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.1")
6+
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.1")
7+
8+
// for publishing to sonatype / maven-central
9+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "1.1")
10+
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")

0 commit comments

Comments
 (0)