Skip to content

Commit 4a7eb05

Browse files
committed
chore: move generator project settings to its own file as in the generated project
1 parent df5f9de commit 4a7eb05

File tree

2 files changed

+25
-20
lines changed

2 files changed

+25
-20
lines changed

build.sbt

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,4 @@
1-
lazy val root = (project in file("."))
2-
.settings(
3-
name := "Codely Scala Basic Skeleton",
4-
version := "1.7.0",
5-
6-
organization := "com.codely",
7-
organizationName := "Codely Enseña y Entretiene SL",
8-
organizationHomepage := Some(url("https://codely.com")),
9-
10-
scriptedLaunchOpts ++= List(
11-
"-Xms1024m",
12-
"-Xmx1024m",
13-
"-Xss2m",
14-
"-Dfile.encoding=UTF-8"
15-
),
16-
resolvers += Resolver.url(
17-
"typesafe",
18-
url("https://repo.typesafe.com/typesafe/ivy-releases/")
19-
)(Resolver.ivyStylePatterns)
20-
)
1+
Settings.settings
212

223
SbtAliases.aliases.flatMap { case (alias, command) =>
234
addCommandAlias(alias, command)

project/Settings.scala

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import sbt.{Compile, Configuration => _, Resolver, Test, TestFrameworks, Tests}
2+
import sbt.ScriptedPlugin.autoImport.scriptedLaunchOpts
3+
import sbt.Keys._
4+
import sbt.io.syntax._
5+
6+
object Settings {
7+
val settings = Seq(
8+
name := "Codely Scala Basic Skeleton",
9+
version := "1.7.0",
10+
organization := "com.codely",
11+
organizationName := "Codely Enseña y Entretiene SL",
12+
organizationHomepage := Some(url("https://codely.com")),
13+
scriptedLaunchOpts ++= List(
14+
"-Xms1024m",
15+
"-Xmx1024m",
16+
"-Xss2m",
17+
"-Dfile.encoding=UTF-8"
18+
),
19+
resolvers += Resolver.url(
20+
"typesafe",
21+
url("https://repo.typesafe.com/typesafe/ivy-releases/")
22+
)(Resolver.ivyStylePatterns)
23+
)
24+
}

0 commit comments

Comments
 (0)