Skip to content

Commit

Permalink
Allow config settings to be project global
Browse files Browse the repository at this point in the history
  • Loading branch information
gpampara committed Feb 11, 2018
1 parent 460d89a commit 78aaf97
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -123,16 +123,14 @@ lazy val publishSettings = Seq(
}
}
</developers>
),
pgpPublicRing := file("./project/local.pubring.asc"),
pgpSecretRing := file("./project/local.secring.asc")
) ++ credentialSettings
)
)

lazy val cilibSettings = buildSettings ++ commonSettings ++ publishSettings

lazy val cilib = project.in(file("."))
.enablePlugins(GitVersioning, ReleasePlugin)
.settings(noPublishSettings ++ Seq(
.settings(credentialSettings ++ noPublishSettings ++ Seq(
git.useGitDescribe := true,
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
Expand Down Expand Up @@ -242,6 +240,9 @@ lazy val credentialSettings = Seq(
username <- Option(System.getenv("SONATYPE_USERNAME"))
password <- Option(System.getenv("SONATYPE_PASSWORD"))
} yield Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", username, password)).toSeq,
sonatypeProfileName := "net.cilib",
pgpPublicRing := file("./project/local.pubring.asc"),
pgpSecretRing := file("./project/local.secring.asc"),
pgpPassphrase := Option(System.getenv("PGP_PASS")).map(_.toArray)
)

Expand Down

0 comments on commit 78aaf97

Please sign in to comment.