Skip to content

Commit

Permalink
Merge branch 'master' of github.com:horothesun/api-gateway-lambda-tem…
Browse files Browse the repository at this point in the history
…plate.g8 into update/sbt-1.10.0
  • Loading branch information
horothesun committed May 6, 2024
2 parents e6c16bd + 7d3af2d commit 8be5c56
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Scala Steward: Reformat with scalafmt 3.7.17
179803f2659eaeaf96236283ae550f96b561eac3
11 changes: 11 additions & 0 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version = 3.7.17
align.preset = more
maxColumn = 100
runner.dialect = scala213

rewrite.rules = [
RedundantBraces
]
project.excludeFilters = [
"target"
]
14 changes: 12 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
ThisBuild / scalaVersion := "2.13.14"

lazy val root = (project in file("."))
.enablePlugins(ScriptedPlugin)
.settings(
name := "API Gateway Lambda template",
test in Test := {
val _ = (g8Test in Test).toTask("").value
},
scriptedLaunchOpts ++= List("-Xms1024m", "-Xmx1024m", "-XX:ReservedCodeCacheSize=128m", "-Xss2m", "-Dfile.encoding=UTF-8"),
resolvers += Resolver.url("typesafe", url("https://repo.typesafe.com/typesafe/ivy-releases/"))(Resolver.ivyStylePatterns)
scriptedLaunchOpts ++= List(
"-Xms1024m",
"-Xmx1024m",
"-XX:ReservedCodeCacheSize=128m",
"-Xss2m",
"-Dfile.encoding=UTF-8"
),
resolvers += Resolver.url("typesafe", url("https://repo.typesafe.com/typesafe/ivy-releases/"))(
Resolver.ivyStylePatterns
)
)
.settings(Dependencies.core)
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
addSbtPlugin("org.foundweekends.giter8" %% "sbt-giter8" % "0.16.2")
libraryDependencies += { "org.scala-sbt" %% "scripted-plugin" % sbtVersion.value }
libraryDependencies += "org.scala-sbt" %% "scripted-plugin" % sbtVersion.value

addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "2.2.0")
2 changes: 1 addition & 1 deletion src/main/g8/.scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 3.7.14
version = 3.7.17
align.preset = more
maxColumn = 100
runner.dialect = scala213
Expand Down
2 changes: 1 addition & 1 deletion src/main/g8/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# API Gateway triggered Lambda
# $name$

[![CI](https://github.com/$github_org$/$repo_name$/actions/workflows/ci.yml/badge.svg)](https://github.com/$github_org$/$repo_name$/actions/workflows/ci.yml)
[![ECR cleanup](https://github.com/$github_org$/$repo_name$/workflows/ecr_cleanup.yml/badge.svg)](https://github.com/$github_org$/$repo_name$/actions/workflows/ecr_cleanup.yml)
Expand Down
2 changes: 1 addition & 1 deletion src/main/g8/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ scalacOptions += "-Xfatal-warnings"

ThisBuild / organization := "com.$github_org;format="camel,lower"$"
ThisBuild / organizationName := "$github_org$"
ThisBuild / scalaVersion := "2.13.12"
ThisBuild / scalaVersion := "2.13.14"
val projectName = "$repo_name$"

Expand Down

0 comments on commit 8be5c56

Please sign in to comment.