Skip to content

Commit

Permalink
no longer support 2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
phelps-sg committed Mar 3, 2024
1 parent 40773bf commit 03d63d5
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 32 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/continouos-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
strategy:
fail-fast: true
matrix:
scala: [ '2.12.19', '2.13.13' ]
scala: [ '2.13.13' ]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
matrix:
distribution: [ 'corretto' ]
jdk: [ '11' ]
scala: [ '2.12.19', '2.13.13' ]
scala: [ '2.13.13' ]
experimental: [ false ]
include:
- jdk: '17'
Expand Down
3 changes: 1 addition & 2 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Common._
import Dependencies.Version.scala212
import Dependencies.Version.scala213

name := """play-hmac-signatures"""
Expand All @@ -9,7 +8,7 @@ enablePlugins(Common, Dependencies)
inThisBuild(
List(
scalaVersion := scala213,
crossScalaVersions := Seq(scala212, scala213),
crossScalaVersions := Seq(scala213),
scalafixScalaBinaryVersion := "2.13",
versionScheme := Some("early-semver"),
semanticdbEnabled := true,
Expand Down
1 change: 0 additions & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import sbt.plugins.JvmPlugin
object Dependencies extends AutoPlugin {

object Version {
val scala212 = "2.12.19"
val scala213 = "2.13.13"

val play = "2.9.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,9 @@ abstract class SignatureVerifyAction(
)(_, _, _)

protected def getTimestamp[A](request: Request[A]): Option[EpochSeconds] = {
import Utils.LongStringScala212
for {
timestampStr <- request.headers.get(headerKeyTimestamp)
t <- timestampStr.toLongOpt
t <- timestampStr.toLongOption
} yield EpochSeconds(t)
}

Expand Down
25 changes: 0 additions & 25 deletions src/main/scala/com/mesonomics/playhmacsignatures/Utils.scala

This file was deleted.

0 comments on commit 03d63d5

Please sign in to comment.