Skip to content

Commit

Permalink
Merge pull request #13 from circe/updates
Browse files Browse the repository at this point in the history
Updates
  • Loading branch information
jonas authored Feb 19, 2018
2 parents 215b179 + 810077b commit 6cbe08e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 19 deletions.
18 changes: 3 additions & 15 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -86,24 +86,12 @@ scalacOptions in (Test, console) := (scalacOptions in (Compile, console)).value
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
publishTo := {
val nexus = "https://oss.sonatype.org/"
publishTo := Some {
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
Opts.resolver.sonatypeSnapshots
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
Opts.resolver.sonatypeStaging
}
credentials ++= (
for {
username <- Option(System.getenv().get("SONATYPE_USERNAME"))
password <- Option(System.getenv().get("SONATYPE_PASSWORD"))
} yield Credentials(
"Sonatype Nexus Repository Manager",
"oss.sonatype.org",
username,
password
)
).toSeq

scmInfo := Some(
ScmInfo(
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.0.4
sbt.version=1.1.1
4 changes: 2 additions & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.6")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.6.2")
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.9.3")
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.3.0")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.3.2")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.3")
addSbtPlugin("com.github.tkawachi" % "sbt-doctest" % "0.7.0")
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.1.18")
2 changes: 1 addition & 1 deletion src/main/scala/io.circe.config/parser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import com.typesafe.config._
*/
object parser extends Parser {

private[this] final def toJson[T](parseConfig: => Config): Either[ParsingFailure, Json] = {
private[this] final def toJson(parseConfig: => Config): Either[ParsingFailure, Json] = {
def convertValueUnsafe(value: ConfigValue): Json = value match {
case obj: ConfigObject =>
Json.fromFields(obj.asScala.mapValues(convertValueUnsafe))
Expand Down

0 comments on commit 6cbe08e

Please sign in to comment.