@@ -2,9 +2,18 @@ name := "json-logic-scala"
22
33organization := " com.github.celadari"
44
5- homepage := Some (url(" https://github .com/celadari/json-logic-scala " ))
5+ homepage := Some (url(" https://jsonlogicscala .com" ))
66
7- version := " 2.0.0"
7+ developers := List (Developer (
8+ " celadari" ,
9+ " Charles" ,
10+ " celadari@jsonlogicscala.com" ,
11+ url(" https://github.com/username" )
12+ ))
13+
14+ licenses += (" MIT" , url(" https://mit-license.org/" ))
15+
16+ version := " SNAPSHOT-2.0.0"
817
918scalaVersion := " 2.13.2"
1019
@@ -21,7 +30,7 @@ autoScalaLibrary := false
2130// scalastyle:off magic.number
2231def resolveVersion (scalaV : String , versionsResolver : Map [String , String ]): String = versionsResolver(scalaV.slice(0 , 4 ))
2332
24- val typeSafeVersions = Map (" 2.10 " -> " 2.6.14 " , " 2. 11" -> " 2.7.4" , " 2.12" -> " 2.8.1" , " 2.13" -> " 2.8.1" )
33+ val typeSafeVersions = Map (" 2.11" -> " 2.7.4" , " 2.12" -> " 2.8.1" , " 2.13" -> " 2.8.1" )
2534
2635libraryDependencies ++= Seq (
2736 " com.typesafe.play" %% " play-json" % resolveVersion(scalaVersion.value, typeSafeVersions),
@@ -30,9 +39,9 @@ libraryDependencies ++= Seq(
3039 " org.scalatest" %% " scalatest" % " 3.2.9" % Test
3140)
3241
33- // scalacOptions ++= ("-feature" :: "-language:postfixOps" :: "-language:implicitConversions" :: Nil)
3442scalacOptions ++= Seq (
35- " -encoding" , " utf8" ,
43+ " -encoding" ,
44+ " utf8" ,
3645 " -deprecation" ,
3746 " -feature" ,
3847 " -language:higherKinds" ,
@@ -58,27 +67,22 @@ publishTo := {
5867
5968publishConfiguration := publishConfiguration.value.withOverwrite(true )
6069
61- credentials += Credentials (Path .userHome / " .sbt" / " .credentials" )
70+ credentials += sys.env.get(" SONATYPE_USERNAME" ).zip(sys.env.get(" SONATYPE_PASSWORD" ))
71+ .headOption
72+ .map{case (username, password) => Credentials (" Sonatype Nexus Repository Manager" , " oss.sonatype.org" , username, password)}
73+ .getOrElse(Credentials (Path .userHome / " .sbt" / " .credentials" ))
6274
6375Test / publishArtifact := false
6476
6577publishMavenStyle := true
6678
6779pomIncludeRepository := { _ => false }
6880
69- pomExtra :=
70- <scm >
71- <url >git@ github.com: celadari/ json- logic- scala.git</url >
72- <connection >scm: git: git@ github.com: celadari/ json- logic- scala.git</connection >
73- </scm >
74- <developers >
75- <developer >
76- <id >celadari</id >
77- <name >Charles - Edouard LADARI </name >
78- <url >https:// github.com/ celadari</url >
79- </developer >
80- </developers >
81+ scmInfo := Some (ScmInfo (url(" https://github.com/celadari/json-logic-scala" ),
82+ " git@github.com:celadari/json-logic-scala.git" ))
8183
82- licenses += (" MIT" , url(" https://mit-license.org/" ))
83-
84- // Scaladoc publishing stuff
84+ // sonatype repository settings
85+ publishTo := Some (
86+ if (isSnapshot.value) Opts .resolver.sonatypeSnapshots
87+ else Opts .resolver.sonatypeStaging
88+ )
0 commit comments