2023-07-02 17:53:56 -04:00
|
|
|
import mill._
|
|
|
|
import mill.scalalib._
|
|
|
|
import mill.scalalib.publish._
|
2023-07-05 20:34:36 -04:00
|
|
|
import $ivy.`com.lihaoyi::mill-contrib-twirllib:`, mill.twirllib._
|
2023-07-02 17:53:56 -04:00
|
|
|
|
2023-07-05 20:34:36 -04:00
|
|
|
object astral extends Module
|
|
|
|
{
|
|
|
|
def scalaVersion = "3.3.0"
|
2023-07-02 17:53:56 -04:00
|
|
|
|
2023-07-05 20:34:36 -04:00
|
|
|
def compile = compiler.compile
|
|
|
|
|
|
|
|
object compiler extends ScalaModule
|
|
|
|
with PublishModule
|
|
|
|
with TwirlModule
|
|
|
|
{
|
2023-07-02 19:12:44 -04:00
|
|
|
val VERSION = "0.0.1-SNAPSHOT"
|
|
|
|
|
|
|
|
def scalaVersion = astral.scalaVersion
|
2023-07-05 20:34:36 -04:00
|
|
|
def twirlScalaVersion = scalaVersion
|
|
|
|
def twirlVersion = "1.6.0-RC4"
|
2023-07-02 19:12:44 -04:00
|
|
|
|
|
|
|
def mainClass = Some("com.astraldb.Astral")
|
2023-07-05 20:34:36 -04:00
|
|
|
def generatedSources = T{ Seq(compileTwirl().classes) }
|
|
|
|
|
|
|
|
/*************************************************
|
|
|
|
*** Twirl Config
|
|
|
|
*************************************************/
|
|
|
|
def twirlFormats = super.twirlFormats() ++ Map(
|
|
|
|
"scala" -> "play.twirl.api.TxtFormat"
|
|
|
|
)
|
2023-07-02 19:12:44 -04:00
|
|
|
|
|
|
|
/*************************************************
|
|
|
|
*** Backend Dependencies
|
|
|
|
*************************************************/
|
2023-07-05 20:34:36 -04:00
|
|
|
def ivyDeps = Agg(
|
|
|
|
ivy"com.typesafe.play::twirl-api::${twirlVersion()}"
|
|
|
|
)
|
2023-07-02 19:12:44 -04:00
|
|
|
|
|
|
|
def publishVersion = VERSION
|
|
|
|
override def pomSettings = PomSettings(
|
|
|
|
description = "The Astral Compiler Compiler",
|
|
|
|
organization = "com.astraldb",
|
|
|
|
url = "http://astraldb.com",
|
|
|
|
licenses = Seq(License.`Apache-2.0`),
|
|
|
|
versionControl = VersionControl.github("UBOdin", "astral"),
|
|
|
|
developers = Seq(
|
|
|
|
Developer("okennedy", "Oliver Kennedy", "https://odin.cse.buffalo.edu"),
|
|
|
|
)
|
2023-07-02 17:53:56 -04:00
|
|
|
)
|
2023-07-02 19:12:44 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
object catalyst extends ScalaModule
|
|
|
|
{
|
|
|
|
def scalaVersion = astral.scalaVersion
|
|
|
|
|
|
|
|
def mainClass = Some("com.astraldb.catalyst.Astral")
|
|
|
|
|
|
|
|
def moduleDeps = Seq(astral.compiler)
|
|
|
|
}
|
2023-07-02 17:53:56 -04:00
|
|
|
}
|
|
|
|
|