Skip to content

Commit

Permalink
Include sbt-apache-sonatype (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdedetrich authored Jan 24, 2024
1 parent e03082c commit 8127276
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
3 changes: 2 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ developers := List(
Developer(id = "pjfanning", name = "PJ Fanning", email = "", url = url("https://github.com/pjfanning"))
)

addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.1.3")
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.1.3")
addSbtPlugin("org.mdedetrich" % "sbt-apache-sonatype" % "0.1.11")

ThisBuild / githubWorkflowBuild := Seq(WorkflowStep.Sbt(List("test")))
ThisBuild / githubWorkflowTargetTags ++= Seq("v*")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
package com.github.pjfanning.pekkobuild

import org.mdedetrich.apache.sonatype.ApacheSonatypePlugin
import org.mdedetrich.apache.sonatype.ApacheSonatypePlugin.autoImport.apacheSonatypeProjectProfile
import sbt._

object PekkoCorePlugin extends AutoPlugin {

override def trigger: PluginTrigger = allRequirements
override lazy val trigger: PluginTrigger = allRequirements
override lazy val requires: Plugins = ApacheSonatypePlugin

object autoImport extends PekkoCoreSettings

Expand All @@ -14,4 +17,8 @@ object PekkoCorePlugin extends AutoPlugin {
pekkoCoreProject := false
)

override lazy val buildSettings = Seq(
apacheSonatypeProjectProfile := "pekko"
)

}
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import sbt._
import sbt.Keys._

object PekkoInlinePlugin extends AutoPlugin {
override def trigger: PluginTrigger = allRequirements
override lazy val trigger: PluginTrigger = allRequirements

override def requires: Plugins = JvmPlugin && PekkoCorePlugin
override lazy val requires: Plugins = JvmPlugin && PekkoCorePlugin

object autoImport extends PekkoInlineSettings

Expand Down

0 comments on commit 8127276

Please sign in to comment.