Skip to content

Commit

Permalink
drop support for 2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
CJSmith-0141 committed Dec 22, 2023
1 parent 398bb95 commit f329241
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 33 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
scala: [3, 2.13, 2.12]
scala: [3, 2.13]
java: [temurin@17]
runs-on: ${{ matrix.os }}
timeout-minutes: 60
Expand Down Expand Up @@ -119,16 +119,6 @@ jobs:
tar xf targets.tar
rm targets.tar
- name: Download target directories (2.12)
uses: actions/download-artifact@v3
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.12

- name: Inflate target directories (2.12)
run: |
tar xf targets.tar
rm targets.tar
- name: Import signing key
if: env.PGP_SECRET != '' && env.PGP_PASSPHRASE == ''
env:
Expand Down
1 change: 0 additions & 1 deletion .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ pull_request_rules:
- body~=labels:.*early-semver-patch
- status-success=Build and Test (ubuntu-latest, 3, temurin@17)
- status-success=Build and Test (ubuntu-latest, 2.13, temurin@17)
- status-success=Build and Test (ubuntu-latest, 2.12, temurin@17)
actions:
merge: {}
- name: Label core PRs
Expand Down
5 changes: 2 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
lazy val V = new {
val SCALA_2_12 = "2.12.18"
val SCALA_2_13 = "2.13.12"
val SCALA_3 = "3.3.1"
val Scalas = Seq(SCALA_3, SCALA_2_13, SCALA_2_12)
val Scalas = Seq(SCALA_3, SCALA_2_13)
}

ThisBuild / scalaVersion := V.Scalas.head
Expand Down Expand Up @@ -30,7 +29,7 @@ ThisBuild / githubWorkflowBuild := Seq(
)
ThisBuild / tlJdkRelease := Option(8)
ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("17"))
ThisBuild / githubWorkflowScalaVersions := Seq("3", "2.13", "2.12")
ThisBuild / githubWorkflowScalaVersions := Seq("3", "2.13")
ThisBuild / tlCiReleaseBranches := Seq("main")
ThisBuild / tlBaseVersion := "0.6"
ThisBuild / tlSonatypeUseLegacyHost := false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,23 @@ package object crypto {
type ChunkSize = ChunkSize.Type
object ChunkSize extends NewtypeWrapped[PosInt]

def attemptTagChunkSize(pi: Int): Either[String, ChunkSize] = refineV[Positive](pi).map(ChunkSize(_))
def attemptTagChunkSize(pi: Int): Either[String, ChunkSize] =
refineV[Positive](pi).map(ChunkSize(_))

val defaultChunkSize: ChunkSize = ChunkSize(4096)
val defaultChunkSize: ChunkSize = ChunkSize(4096)
private[crypto] val objectIteratorChunkSize: ChunkSize = ChunkSize(1)

implicit class RefinedNewtypeOps[RNT](val refinedNewtype: RNT) extends AnyVal {
implicit class RefinedNewtypeOps[RNT](val refinedNewtype: RNT)
extends AnyVal {
def unrefined[X, R[_, _], T, P](implicit
ex: HasExtractor.Aux[RNT, X],
x: X =:= R[T, P],
rt: RefType[R],
): T = {
ex: HasExtractor.Aux[RNT, X],
x: X =:= R[T, P],
rt: RefType[R]
): T = {
rt.unwrap(x(ex.extract(refinedNewtype)))
}
}

private[crypto] implicit def SLogger[F[_] : Logger]: Logger[Stream[F, *]] = Logger[F].mapK(Stream.functionKInstance[F])
private[crypto] implicit def SLogger[F[_]: Logger]: Logger[Stream[F, *]] =
Logger[F].mapK(Stream.functionKInstance[F])
}
9 changes: 0 additions & 9 deletions project/BouncyCastlePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,6 @@ object BouncyCastlePlugin extends AutoPlugin {
case Some((2, n)) if n >= 13 => "-Ymacro-annotations" :: Nil
case _ => Nil
}
},
libraryDependencies ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, n)) if n < 13 =>
compilerPlugin(
"org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full
) :: Nil
case _ => Nil
}
}
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import eu.timepit.refined.predicates.all.*
private[testutils] trait PgpArbitrariesPlatform { self: PgpArbitraries =>
type KeySizePred = GreaterEqual[W.`384`.T]

protected val KeySize512: KeySize = 512
protected val KeySize512: KeySize = 512
protected val KeySize2048: KeySize = 2048
protected val KeySize4096: KeySize = 4096
}

0 comments on commit f329241

Please sign in to comment.