~jan0sch/smederee

Showing details for patch ed71f0330566e8dfaf237942bdaac1ff941b2a1e.
2023-06-29 (Thu), 6:57 PM - Jens Grassel - ed71f0330566e8dfaf237942bdaac1ff941b2a1e

Build configuration: Use sbt-buildinfo in hub and tickets module.

Summary of changes
2 files modified with 7 lines added and 0 lines removed
  • build.sbt with 6 added and 0 removed lines
  • project/plugins.sbt with 1 added and 0 removed lines
diff -rN -u old-smederee/build.sbt new-smederee/build.sbt
--- old-smederee/build.sbt	2025-01-15 23:59:10.024377353 +0000
+++ new-smederee/build.sbt	2025-01-15 23:59:10.024377353 +0000
@@ -134,6 +134,7 @@
     .dependsOn(darcs, email, htmlUtils, i18n, security, tickets, twirl)
     .enablePlugins(
       AutomateHeaderPlugin,
+      BuildInfoPlugin,
       DebianPlugin,
       JavaServerAppPackaging,
       JDebPackaging,
@@ -144,6 +145,8 @@
     .settings(commonSettings)
     .settings(
       name := "hub",
+      buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion),
+      buildInfoPackage := "de.smederee.hub",
       libraryDependencies ++= Seq(
         library.apacheSshdCore,
         library.apacheSshdSftp,
@@ -289,6 +292,7 @@
     .dependsOn(email, htmlUtils, i18n, security, twirl)
     .enablePlugins(
       AutomateHeaderPlugin,
+      BuildInfoPlugin,
       DebianPlugin,
       JavaServerAppPackaging,
       JDebPackaging,
@@ -299,6 +303,8 @@
     .settings(commonSettings)
     .settings(
       name := "tickets",
+      buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion),
+      buildInfoPackage := "de.smederee.tickets",
       libraryDependencies ++= Seq(
         library.catsCore,
         library.circeCore,
diff -rN -u old-smederee/project/plugins.sbt new-smederee/project/plugins.sbt
--- old-smederee/project/plugins.sbt	2025-01-15 23:59:10.024377353 +0000
+++ new-smederee/project/plugins.sbt	2025-01-15 23:59:10.024377353 +0000
@@ -1,6 +1,7 @@
 // Compiler plugins
 addCompilerPlugin("org.scalameta" % "semanticdb-scalac" % "4.7.8" cross CrossVersion.full)
 // Regular plugins
+addSbtPlugin("com.eed3si9n"      % "sbt-buildinfo"       % "0.11.0")
 addSbtPlugin("de.heikoseeberger" % "sbt-header"          % "5.9.0")
 addSbtPlugin("com.github.sbt"    % "sbt-native-packager" % "1.9.16")
 addSbtPlugin("io.spray"          % "sbt-revolver"        % "0.9.1")