Skip to content
Open
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
2 changes: 1 addition & 1 deletion ci-signing/build.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
addSbtPlugin("io.crashbox" % "sbt-gpg" % "0.2.1")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.1")
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,16 @@

package org.typelevel.sbt

import io.crashbox.gpg.SbtGpg
import com.jsuereth.sbtpgp.SbtPgp
import com.jsuereth.sbtpgp.SbtPgp.autoImport.useGpgAgent
import org.typelevel.sbt.gha.GenerativePlugin
import org.typelevel.sbt.gha.GenerativePlugin.autoImport._
import org.typelevel.sbt.gha.GitHubActionsPlugin
import sbt._

import Keys._

object TypelevelCiSigningPlugin extends AutoPlugin {

override def requires = SbtGpg && GitHubActionsPlugin && GenerativePlugin
override def requires = SbtPgp && GitHubActionsPlugin && GenerativePlugin

override def trigger = allRequirements

Expand Down Expand Up @@ -55,10 +54,8 @@ object TypelevelCiSigningPlugin extends AutoPlugin {
)
)

import SbtGpg.autoImport._

override def projectSettings = Seq(
gpgWarnOnFailure := isSnapshot.value
useGpgAgent := false
)

private val env = Map(
Expand Down
4 changes: 2 additions & 2 deletions docs/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Instead of using the super-plugins, for finer-grained control you can always add

- `tlIsScala3` (setting): `true`, if `scalaVersion` is 3.x.
- `tlCommandAliases` (setting): Command aliases defined for this build.
- `tlReleaseLocal` (command): Alias for `+publishLocal`.
- `tlReleaseLocal` (command): Alias for `+publishLocalSigned`.

### sbt-typelevel-versioning
`TypelevelVersioningPlugin`: Establishes a git-based, early semantic versioning scheme.
Expand All @@ -31,7 +31,7 @@ Instead of using the super-plugins, for finer-grained control you can always add
### sbt-typelevel-sonatype
`TypelevelSonatypePlugin`: Sets up publishing to Sonatype/Maven.

- `tlRelease` (command): Check binary-compatibility and `+publish` to Sonatype.
- `tlRelease` (command): Check binary-compatibility and `+publishSigned` to Sonatype.

`TypelevelUnidocPlugin`: Sets up publishing a Scaladoc-only artifact to Sonatype/Maven.

Expand Down
4 changes: 2 additions & 2 deletions docs/plugins.dot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ digraph {
fix[label="sbt-scalafix"]
fmt[label="sbt-scalafmt"]
git[label="sbt-git"]
gpg[label="sbt-gpg"]
pgp[label="sbt-pgp"]
header[label="sbt-header"]
laika[label="laika-sbt"]
mdoc[label="sbt-mdoc"]
Expand Down Expand Up @@ -47,7 +47,7 @@ digraph {

tlcisigning[label="sbt-typelevel-ci-signing"];
tlcisigning -> tlgha;
tlcisigning -> gpg;
tlcisigning -> pgp;

tlsonatypecirelease[label="sbt-typelevel-sonatype-ci-release"];
tlsonatypecirelease -> tlsonatype;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ object TypelevelKernelPlugin extends AutoPlugin {
override def globalSettings = Seq(
Def.derive(tlIsScala3 := scalaVersion.value.startsWith("3.")),
tlCommandAliases := Map(
"tlReleaseLocal" -> List("reload", "project /", "+publishLocal")
"tlReleaseLocal" -> List("reload", "project /", "+publishLocalSigned")
),
onLoad := {
val aliases = tlCommandAliases.value
Expand Down
1 change: 1 addition & 0 deletions sonatype/build.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.1.6")
addSbtPlugin("com.github.sbt" % "sbt-unidoc" % "0.6.1")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.1")
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ object TypelevelSonatypePlugin extends AutoPlugin {
"reload",
"project /",
"+mimaReportBinaryIssues",
"+publish",
"+publishSigned",
"tlSonatypeBundleReleaseIfRelevant")
}
)
Expand Down
Loading