Compare commits

..

No commits in common. "23ee3d6822f766aac681b0c213c592b9eec2acf2" and "cc43229ef0475d634b808712af7296452c08505b" have entirely different histories.

6 changed files with 38 additions and 114 deletions

32
.gitignore vendored
View File

@ -1,4 +1,28 @@
.bloop/*
.metals/*
.vscode/*
out/*
# Created by https://www.toptal.com/developers/gitignore/api/scala,sbt,metals
# Edit at https://www.toptal.com/developers/gitignore?templates=scala,sbt,metals
### Metals ###
.metals/
.bloop/
project/metals.sbt
### SBT ###
# Simple Build Tool
# http://www.scala-sbt.org/release/docs/Getting-Started/Directories.html#configuring-version-control
dist/*
target/
lib_managed/
src_managed/
project/boot/
project/plugins/project/
.history
.cache
.lib/
### Scala ###
*.class
*.log
# End of https://www.toptal.com/developers/gitignore/api/scala,sbt,metals

6
build.sbt Normal file
View File

@ -0,0 +1,6 @@
lazy val core = (project in file("core")).settings(
organization := "tf.bug",
name := "fancade-core",
version := "2.0.0",
scalaVersion := "2.13.3",
)

103
build.sc
View File

@ -1,103 +0,0 @@
import mill._, scalalib._, publish._
import $ivy.`io.github.davidgregory084::mill-tpolecat:0.1.4`
import io.github.davidgregory084.TpolecatModule
object core extends TpolecatModule with PublishModule {
override def scalaVersion = "2.13.3"
override def artifactName = "fancade-core"
override def publishVersion = "2.0.0"
override def pomSettings = PomSettings(
description = "A library for representing Fancade scripts",
organization = "tf.bug",
url = "https://gitdab.com/s/fancadescala",
licenses = Seq(License.MIT),
versionControl = VersionControl(
browsableRepository = Some("https://gitdab.com/s/fancadescala"),
connection = Some(VersionControlConnection.gitGit("gitdab.com", "s/fancadescala.git")),
developerConnection = Some(VersionControlConnection.gitSsh("ssh.gitdab.com", ":s/fancadescala.git", username = Some("git"))),
tag = None,
),
developers = Seq(
Developer("sorenbug", "Soren", "https://gitdab.com/s"),
),
)
}
object tagless extends TpolecatModule with PublishModule {
override def scalaVersion = "2.13.3"
override def artifactName = "fancade-tagless"
override def publishVersion = "2.0.0"
override def pomSettings = PomSettings(
description = "A tagless DSL for building Fancade scripts",
organization = "tf.bug",
url = "https://gitdab.com/s/fancadescala",
licenses = Seq(License.MIT),
versionControl = VersionControl(
browsableRepository = Some("https://gitdab.com/s/fancadescala"),
connection = Some(VersionControlConnection.gitGit("gitdab.com", "s/fancadescala.git")),
developerConnection = Some(VersionControlConnection.gitSsh("ssh.gitdab.com", ":s/fancadescala.git", username = Some("git"))),
tag = None,
),
developers = Seq(
Developer("sorenbug", "Soren", "https://gitdab.com/s"),
),
)
override def moduleDeps = Seq(core)
override def scalacPluginIvyDeps = Agg(ivy"org.typelevel:::kind-projector:0.11.0", ivy"com.olegpy::better-monadic-for:0.3.1")
}
object scodec extends TpolecatModule with PublishModule {
override def scalaVersion = "2.13.3"
override def artifactName = "fancade-scodec"
override def publishVersion = "2.0.0"
override def pomSettings = PomSettings(
description = "A library for reading and writing the Fancade level format",
organization = "tf.bug",
url = "https://gitdab.com/s/fancadescala",
licenses = Seq(License.MIT),
versionControl = VersionControl(
browsableRepository = Some("https://gitdab.com/s/fancadescala"),
connection = Some(VersionControlConnection.gitGit("gitdab.com", "s/fancadescala.git")),
developerConnection = Some(VersionControlConnection.gitSsh("ssh.gitdab.com", ":s/fancadescala.git", username = Some("git"))),
tag = None,
),
developers = Seq(
Developer("sorenbug", "Soren", "https://gitdab.com/s"),
),
)
override def moduleDeps = Seq(core)
}
object recipe extends TpolecatModule with PublishModule {
override def scalaVersion = "2.13.3"
override def artifactName = "fancade-recipe"
override def publishVersion = "2.0.0"
override def pomSettings = PomSettings(
description = "An application that creates Fancade levels from other data",
organization = "tf.bug",
url = "https://gitdab.com/s/fancadescala",
licenses = Seq(License.MIT),
versionControl = VersionControl(
browsableRepository = Some("https://gitdab.com/s/fancadescala"),
connection = Some(VersionControlConnection.gitGit("gitdab.com", "s/fancadescala.git")),
developerConnection = Some(VersionControlConnection.gitSsh("ssh.gitdab.com", ":s/fancadescala.git", username = Some("git"))),
tag = None,
),
developers = Seq(
Developer("sorenbug", "Soren", "https://gitdab.com/s"),
),
)
override def moduleDeps = Seq(tagless, scodec)
override def scalacPluginIvyDeps = Agg(ivy"org.typelevel:::kind-projector:0.11.0", ivy"com.olegpy::better-monadic-for:0.3.1")
}

View File

@ -1,7 +0,0 @@
package tf.bug.fancade
object Foo {
def main(args: Array[String]): Unit = {
println("hi")
}
}

1
project/build.properties Normal file
View File

@ -0,0 +1 @@
sbt.version = 1.3.13

3
project/plugins.sbt Normal file
View File

@ -0,0 +1,3 @@
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.13")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.10")
addSbtPlugin("org.jmotor.sbt" % "sbt-dependency-updates" % "1.2.2")