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>
44 lines
1.3 KiB
Scala
44 lines
1.3 KiB
Scala
import mill._, scalalib._, scalafmt._, publish._
|
|
|
|
// Mill build file (see https://mill-build.com/mill/Intro_to_Mill.html).
|
|
// run with:
|
|
//
|
|
// mill _.compile
|
|
// mill _.reformat
|
|
// mill _.publishLocal
|
|
// mill _.test.test
|
|
object scala-cask-petstore extends SbtModule with ScalafmtModule with PublishModule {
|
|
def scalaVersion = "3.3.1"
|
|
|
|
def pomSettings = PomSettings(
|
|
description = "scala-cask-petstore",
|
|
organization = "cask.groupId",
|
|
url = "https://github.com/<username>/scala-cask-petstore",
|
|
licenses = Seq(License.MIT),
|
|
versionControl = VersionControl.github("<username>", "scala-cask-petstore"),
|
|
developers = Seq(
|
|
// Developer("<username>", "<your name>", "https://github.com/<you>")
|
|
)
|
|
)
|
|
|
|
def publishVersion: mill.T[String] = T("0.0.1-SNAPSHOT")
|
|
|
|
def ivyDeps = Agg(
|
|
ivy"com.lihaoyi::cask:0.9.2" ,
|
|
ivy"com.lihaoyi::upickle:3.2.0"
|
|
)
|
|
|
|
override def sources = T.sources(millSourcePath / os.up / "src" / "main" / "scala")
|
|
override def resources = T.sources(millSourcePath / os.up / "src" / "main" / "resources")
|
|
|
|
object test extends SbtModuleTests {
|
|
def ivyDeps = Agg(
|
|
ivy"org.scalactic::scalactic:3.2.18",
|
|
ivy"org.scalatest::scalatest:3.2.18"
|
|
)
|
|
|
|
def testFramework = "org.scalatest.tools.Framework"
|
|
override def sources = T.sources(millSourcePath / os.up / "src" / "test" / "scala")
|
|
}
|
|
}
|