@@ -2,7 +2,7 @@ name := "fape-build"
2
2
3
3
// global settings
4
4
val _organization = " com.github.arthur-bit-monnot"
5
- val _version = " 1.0-SNAPSHOT "
5
+ val _version = " 1.0"
6
6
val _scalaVersion = " 2.12.2"
7
7
8
8
@@ -28,14 +28,24 @@ lazy val commonSettings = Seq(
28
28
val oldStrategy = (assemblyMergeStrategy in assembly).value
29
29
oldStrategy(x)
30
30
},
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 )
32
41
)
33
42
34
43
lazy val root = project.in(file(" ." )).
35
44
aggregate(fapePlanning).
36
45
37
46
settings(
38
47
publish := {},
48
+
39
49
publishLocal := {}
40
50
)
41
51
@@ -78,4 +88,10 @@ packJvmOpts := Map(
78
88
" fape" -> Seq (" -ea" )
79
89
)
80
90
81
-
91
+ // Add sonatype repository settings
92
+ publishTo := Some (
93
+ if (isSnapshot.value)
94
+ Opts .resolver.sonatypeSnapshots
95
+ else
96
+ Opts .resolver.sonatypeStaging
97
+ )
0 commit comments