Now you can just install Liberica JDK pkg-distibution using brew and will never face the problem mentioned below:
brew tap bell-sw/liberica
brew cask install liberica-jdk11
| case class Food(ingredients: Seq[String]) | |
| class Chef[Pizza <: Chef.Pizza] protected (ingredients: Seq[String]) { | |
| import Chef.Pizza._ | |
| def addCheese(cheeseType: String): Chef[Pizza with Cheese] = Chef(ingredients :+ cheeseType) | |
| def addTopping(toppingType: String): Chef[Pizza with Topping] = Chef(ingredients :+ toppingType) | |
| def addDough: Chef[Pizza with Dough] = Chef(ingredients :+ "dough") |
| //The global script scope | |
| def ctx = context(scope: scriptScope()) | |
| //What things can be on the script scope | |
| contributor(ctx) { | |
| method(name: 'pipeline', type: 'Object', params: [body: Closure]) | |
| property(name: 'params', type: 'org.jenkinsci.plugins.workflow.cps.ParamsVariable') | |
| property(name: 'env', type: 'org.jenkinsci.plugins.workflow.cps.EnvActionImpl.Binder') | |
| property(name: 'currentBuild', type: 'org.jenkinsci.plugins.workflow.cps.RunWrapperBinder') | |
| property(name: 'scm', type: 'org.jenkinsci.plugins.workflow.multibranch.SCMVar') |
| import java.io.IOException | |
| import scalaz.zio.console.putStrLn | |
| import scalaz.zio.{IO, IOApp, IOQueue, Void} | |
| import scala.concurrent.duration.Duration | |
| sealed trait PongMessages | |
| case class Ping(n: Int) extends PongMessages | |
| case object Stop extends PongMessages |
| package example | |
| object RecMap { | |
| object Record { | |
| // use this scope to bound who can see inside the opaque type | |
| opaque type Rec[A <: Tuple] = Map[String, Any] | |
| object Rec { | |
| type HasKey[A <: Tuple, K] = |
| lazy val other = ProjectRef(file("../../../my-other-project"), "otherSubProjectName") | |
| lazy val myProject = project | |
| .in(file("./my-project")) | |
| .dependsOn(other) |