Skip to content

Commit

Permalink
chore: move generator project settings to its own file as in the gene…
Browse files Browse the repository at this point in the history
…rated project
  • Loading branch information
JavierCane committed Jun 22, 2024
1 parent df5f9de commit 4a7eb05
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 20 deletions.
21 changes: 1 addition & 20 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
24 changes: 24 additions & 0 deletions project/Settings.scala
Original file line number Diff line number Diff line change
@@ -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)
)
}

0 comments on commit 4a7eb05

Please sign in to comment.