Skip to content

Commit

Permalink
add convenience method for Zulu JDKs
Browse files Browse the repository at this point in the history
  • Loading branch information
SethTisue committed Jun 23, 2024
1 parent 36e6a87 commit 73cdfd4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/scala/sbtghactions/JavaSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ object JavaSpec {

def corretto(version: String): JavaSpec = JavaSpec(Distribution.Corretto, version)

def zulu(version: String): JavaSpec = JavaSpec(Distribution.Zulu, version)

private[sbtghactions] object JavaVersionExtractor {
def unapply(version: String): Option[Int] =
version.split("\\.").headOption.map(_.toInt)
Expand Down

0 comments on commit 73cdfd4

Please sign in to comment.