mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 12:40:53 +00:00
* Ran `./new.sh -n scala-cask -s` to generate a new Scala Cask impl * removed scala-cask-petstore * Added Scala-cask param parser for BigDecimals * added scala cask to samples * splitting out validation and json * Added GitHub workflow support * regenerated cask samples * cask build fix for local builds * regenerated samples * trying to reproduce failed cask build. checking in compiles sources, which have been reformatted * reverted whaitespace change * cask fix - adding gitignored files * scala cask toLowreCase fix * scala cask toUpperCase fix * cask regenerated samples * improved exception handling for scala cask * File separator fix for windows * Noob fix for cask * regenerated api package * Removed environment variable settings, debug code * Updated samples * moved scala-cask output * Regenerated samples * scala cask fix * Updated scala cask settings for more typical package structure Removed cask client samples * cask - reran generate samples * Removed duplicate ScalaCaskServer entry * minor enhancements * update samples * update templates --------- Co-authored-by: aaron.pritzlaff <aaron@kindservices.co.uk>
29 lines
807 B
Scala
29 lines
807 B
Scala
name := "scala-cask-petstore"
|
|
organization:="cask.groupId"
|
|
version := "0.0.1-SNAPSHOT"
|
|
scalaVersion := "3.3.1"
|
|
scalafmtOnCompile := true
|
|
libraryDependencies ++= Seq(
|
|
"com.lihaoyi" %% "cask" % "0.9.2" ,
|
|
"com.lihaoyi" %% "upickle" % "3.2.0",
|
|
"org.scalatest" %% "scalatest" % "3.2.18" % Test
|
|
)
|
|
|
|
publishMavenStyle := true
|
|
|
|
val githubUser = "GIT_USER_ID"
|
|
val githubRepo = "GIT_REPO_ID"
|
|
publishTo := Some("GitHub Package Registry" at s"https://maven.pkg.github.com/$githubUser/$githubRepo")
|
|
|
|
sys.env.get("GITHUB_TOKEN") match {
|
|
case Some(token) if !token.isEmpty =>
|
|
credentials += Credentials(
|
|
"GitHub Package Registry",
|
|
"maven.pkg.github.com",
|
|
githubUser,
|
|
token
|
|
)
|
|
case _ =>
|
|
println("\n\t\tGITHUB_TOKEN not set - assuming a local build\n\n")
|
|
credentials ++= Nil
|
|
} |