Skip to content

Commit

Permalink
Use play-git-hub 6
Browse files Browse the repository at this point in the history
  • Loading branch information
AshCorr committed Nov 14, 2023
1 parent dd78da8 commit c9e27f7
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 18 deletions.
2 changes: 1 addition & 1 deletion app/controllers/Application.scala
Expand Up @@ -16,7 +16,7 @@

package controllers

import akka.actor.ActorSystem
import org.apache.pekko.actor.ActorSystem
import com.madgag.scalagithub.model.RepoId
import lib.{Bot, RepoSnapshot}
import play.api.Logging
Expand Down
4 changes: 2 additions & 2 deletions app/controllers/RepoAcceptListService.scala
@@ -1,7 +1,7 @@
package controllers

import akka.actor.ActorSystem
import akka.stream.Materializer
import org.apache.pekko.actor.ActorSystem
import org.apache.pekko.stream.Materializer
import com.madgag.github.Implicits._
import com.madgag.scalagithub.GitHub
import com.madgag.scalagithub.model.{Repo, RepoId}
Expand Down
2 changes: 1 addition & 1 deletion app/lib/Delayer.scala
@@ -1,6 +1,6 @@
package lib

import akka.actor.ActorSystem
import org.apache.pekko.actor.ActorSystem

import java.util.concurrent.TimeUnit
import scala.concurrent.ExecutionContext.Implicits.global
Expand Down
2 changes: 1 addition & 1 deletion app/lib/Droid.scala
@@ -1,6 +1,6 @@
package lib

import akka.stream.Materializer
import org.apache.pekko.stream.Materializer
import com.madgag.git._
import com.madgag.scalagithub.GitHub
import com.madgag.scalagithub.model.RepoId
Expand Down
2 changes: 1 addition & 1 deletion app/lib/PRUpdater.scala
@@ -1,6 +1,6 @@
package lib

import akka.stream.Materializer
import org.apache.pekko.stream.Materializer
import com.madgag.scalagithub.GitHub
import com.madgag.scalagithub.commands.CreateComment
import com.madgag.scalagithub.model.{PullRequest, Repo}
Expand Down
2 changes: 1 addition & 1 deletion app/lib/RepoSnapshot.scala
Expand Up @@ -16,7 +16,7 @@

package lib

import akka.stream.Materializer
import org.apache.pekko.stream.Materializer
import com.madgag.git._
import com.madgag.github.Implicits._
import com.madgag.scala.collection.decorators._
Expand Down
2 changes: 1 addition & 1 deletion app/lib/RepoUpdater.scala
@@ -1,6 +1,6 @@
package lib

import akka.stream.Materializer
import org.apache.pekko.stream.Materializer
import com.madgag.github.Implicits.{RichFuture, RichSource}
import com.madgag.scalagithub.GitHub
import com.madgag.scalagithub.commands.CreateLabel
Expand Down
4 changes: 2 additions & 2 deletions app/lib/ScanScheduler.scala
@@ -1,6 +1,6 @@
package lib

import akka.actor.ActorSystem
import org.apache.pekko.actor.ActorSystem

import java.time.Instant
import java.time.Instant.now
Expand All @@ -11,7 +11,7 @@ import com.madgag.scalagithub.model.RepoId
import com.madgag.time.Implicits._
import lib.labels.Seen
import play.api.Logging
import play.api.libs.concurrent.Akka
import play.api.libs.concurrent.Pekko

import java.util.concurrent.atomic.AtomicReference
import scala.concurrent.ExecutionContext.Implicits.global
Expand Down
10 changes: 2 additions & 8 deletions build.sbt
Expand Up @@ -32,8 +32,8 @@ libraryDependencies ++= Seq(
"com.github.nscala-time" %% "nscala-time" % "2.32.0",
"io.lemonlabs" %% "scala-uri" % "4.0.3",
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.5",
"com.madgag.play-git-hub" %% "core" % "5.12",
"com.madgag.play-git-hub" %% "testkit" % "5.12" % Test,
"com.madgag.play-git-hub" %% "core" % "6.0",
"com.madgag.play-git-hub" %% "testkit" % "6.0" % Test,
"com.madgag.scala-git" %% "scala-git-test" % "4.6" % Test,
"org.scalatestplus.play" %% "scalatestplus-play" % "5.1.0" % Test
)
Expand All @@ -45,12 +45,6 @@ libraryDependencies ++= Seq(
"org.webjars" % "jquery" % "3.6.4",
)

excludeDependencies ++= Seq(
// As of Play 3.0, groupId has changed to org.playframework; exclude transitive dependencies to the old artifacts
// play-git-hub still has Play 2.x
ExclusionRule(organization = "com.typesafe.play")
)

routesImport ++= Seq("com.madgag.scalagithub.model._","com.madgag.playgithub.Binders._")

Compile/doc/sources := Seq.empty
Expand Down

0 comments on commit c9e27f7

Please sign in to comment.