Skip to content

Commit

Permalink
refactor PlayAxis
Browse files Browse the repository at this point in the history
  • Loading branch information
dwickern committed Nov 4, 2023
1 parent ad065ea commit 1cb9a63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions project/PlayAxis.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import sbt.ScriptedPlugin.autoImport._
import sbt._
import sbt.internal.ProjectMatrix

case class PlayAxis(version: String, idSuffix: String, directorySuffix: String) extends VirtualAxis.WeakAxis
case class PlayAxis(version: String) extends VirtualAxis.WeakAxis {
val directorySuffix: String = "-play" + version
val idSuffix: String = directorySuffix.replace('.', '_')
}

object PlayAxis {
def apply(version: String): PlayAxis =
PlayAxis(version, "-play" + version.replace('.', '_'), "-play" + version)

implicit class RichProjectMatrix(val matrix: ProjectMatrix) extends AnyVal {
def scriptedTests(playAxis: PlayAxis, scalaVersion: String): ProjectMatrix = matrix.customRow(
autoScalaLibrary = false,
Expand Down

0 comments on commit 1cb9a63

Please sign in to comment.