Skip to content

Commit

Permalink
Moved main API to its own module
Browse files Browse the repository at this point in the history
  • Loading branch information
ulitol97 committed Apr 27, 2022
1 parent 4594363 commit 6b9bf63
Show file tree
Hide file tree
Showing 35 changed files with 21 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 21 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ Global / excludeLintKeys ++= Set(name, idePackagePrefix)

/* ------------------------------------------------------------------------- */
/* MODULES */
lazy val comet = (project in file("."))

// Root project
lazy val root = (project in file("."))
.aggregate(comet)

// Comet's core API, to be published
lazy val comet = (project in file("api"))
.enablePlugins(BuildInfoPlugin)
.settings(
name := "comet",
Expand Down Expand Up @@ -57,6 +63,20 @@ lazy val buildInfoSettings = Seq(
buildInfoObject := "BuildInfo"
)

/* PACKAGING SETTINGS */
// Shared packaging settings for all modules
lazy val packagingSettings = Seq(
// Do not package logback files in .jar, they interfere with other logback
// files in classpath
Compile / packageBin / mappings ~= { project =>
project.filter { case (file, _) =>
val fileName = file.getName
!(fileName.startsWith("logback") && (fileName.endsWith(".xml") || fileName
.endsWith(".groovy")))
}
}
)

/* ------------------------------------------------------------------------- */
/* SBT GITHUB ACTIONS */
// GitHub Actions for build/test and clean are automatically generated
Expand Down

0 comments on commit 6b9bf63

Please sign in to comment.