Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add PGP Settings #116

Merged
merged 2 commits into from
Feb 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ inThisBuild(
homepage.value.get,
"scm:git:git@github.com:zio/zio-sbt.git"
)
),
pgpPassphrase := sys.env.get("PGP_PASSWORD").map(_.toArray),
pgpPublicRing := file("/tmp/public.asc"),
pgpSecretRing := file("/tmp/secret.asc")
)
)
)

Expand Down
18 changes: 11 additions & 7 deletions zio-sbt-ecosystem/src/main/scala/zio/sbt/EcosystemPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@

package zio.sbt

import scala.collection.immutable.ListMap
import com.jsuereth.sbtpgp.SbtPgp.autoImport.{pgpPassphrase, pgpPublicRing, pgpSecretRing}

import scala.collection.immutable.ListMap
import org.scalafmt.sbt.ScalafmtPlugin
import sbt.Keys.*
import sbt.{Def, *}
Expand Down Expand Up @@ -366,11 +367,14 @@ object EcosystemPlugin extends AutoPlugin {

override def globalSettings: Seq[Def.Setting[_]] =
super.globalSettings ++ Seq(
scala3 := Defaults.scala3,
scala211 := Defaults.scala211,
scala212 := Defaults.scala212,
scala213 := Defaults.scala213,
scalaVersion := Defaults.scala213,
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
scala3 := Defaults.scala3,
scala211 := Defaults.scala211,
scala212 := Defaults.scala212,
scala213 := Defaults.scala213,
scalaVersion := Defaults.scala213,
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
pgpPassphrase := sys.env.get("PGP_PASSPHRASE").map(_.toArray),
pgpPublicRing := file("/tmp/public.asc"),
pgpSecretRing := file("/tmp/secret.asc")
)
}