From 4a7eb05726090d924d94a056159ae53d7f5bf37d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Ferrer=20Gonza=CC=81lez?= Date: Sat, 22 Jun 2024 13:46:54 +0200 Subject: [PATCH] chore: move generator project settings to its own file as in the generated project --- build.sbt | 21 +-------------------- project/Settings.scala | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 20 deletions(-) create mode 100644 project/Settings.scala diff --git a/build.sbt b/build.sbt index a8ca082..138649b 100644 --- a/build.sbt +++ b/build.sbt @@ -1,23 +1,4 @@ -lazy val root = (project in file(".")) - .settings( - name := "Codely Scala Basic Skeleton", - version := "1.7.0", - - organization := "com.codely", - organizationName := "Codely Enseña y Entretiene SL", - organizationHomepage := Some(url("https://codely.com")), - - scriptedLaunchOpts ++= List( - "-Xms1024m", - "-Xmx1024m", - "-Xss2m", - "-Dfile.encoding=UTF-8" - ), - resolvers += Resolver.url( - "typesafe", - url("https://repo.typesafe.com/typesafe/ivy-releases/") - )(Resolver.ivyStylePatterns) - ) +Settings.settings SbtAliases.aliases.flatMap { case (alias, command) => addCommandAlias(alias, command) diff --git a/project/Settings.scala b/project/Settings.scala new file mode 100644 index 0000000..ff4f0c4 --- /dev/null +++ b/project/Settings.scala @@ -0,0 +1,24 @@ +import sbt.{Compile, Configuration => _, Resolver, Test, TestFrameworks, Tests} +import sbt.ScriptedPlugin.autoImport.scriptedLaunchOpts +import sbt.Keys._ +import sbt.io.syntax._ + +object Settings { + val settings = Seq( + name := "Codely Scala Basic Skeleton", + version := "1.7.0", + organization := "com.codely", + organizationName := "Codely Enseña y Entretiene SL", + organizationHomepage := Some(url("https://codely.com")), + scriptedLaunchOpts ++= List( + "-Xms1024m", + "-Xmx1024m", + "-Xss2m", + "-Dfile.encoding=UTF-8" + ), + resolvers += Resolver.url( + "typesafe", + url("https://repo.typesafe.com/typesafe/ivy-releases/") + )(Resolver.ivyStylePatterns) + ) +}