Skip to content

Commit

Permalink
Create common SBT settings with aliases for format/validate code
Browse files Browse the repository at this point in the history
  • Loading branch information
ihostage committed Oct 26, 2022
1 parent 4b24b85 commit fdad030
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 32 deletions.
90 changes: 58 additions & 32 deletions .github/sync.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,60 @@
# More details in https://github.com/marketplace/actions/repo-file-sync-action
group:
# Mergify settings
- files:
- .mergify.yml
repos: |
playframework/cachecontrol
playframework/interplay
playframework/omnidoc
playframework/play-doc
playframework/play-ebean
playframework/play-file-watch
playframework/play-grpc
playframework/play-java-seed.g8
playframework/play-json
playframework/play-mailer
playframework/play-samples
playframework/play-scala-seed.g8
playframework/play-slick
playframework/play-soap
playframework/play-socket.io
playframework/play-webgoat
playframework/play-ws
playframework/playframework
playframework/playframework.com
playframework/scalatestplus-play
playframework/twirl
# playframework/anorm
# playframework/netty-reactive-streams
# playframework/play-java-react-seed
# playframework/play-scala-react-seed
# playframework/play-java-angular-seed
# playframework/play-scala-angular-seed

playframework/cachecontrol:

playframework/interplay:

playframework/omnidoc:

playframework/play-doc:

playframework/play-ebean:

playframework/play-file-watch:

playframework/play-grpc:

playframework/play-java-seed.g8:

playframework/play-json:

playframework/play-mailer:

playframework/play-samples:

playframework/play-scala-seed.g8:

playframework/play-slick:

playframework/play-soap:
- source: sbt/common.sbt
dest: common.sbt

playframework/play-socket.io:

playframework/play-webgoat:

playframework/play-ws:

playframework/playframework:

playframework/playframework@2.8.x:

playframework/playframework.com:

playframework/scalatestplus-play:

playframework/twirl:

playframework/anorm:

playframework/netty-reactive-streams:

playframework/play-java-react-seed:

playframework/play-scala-react-seed:

playframework/play-java-angular-seed:

playframework/play-scala-angular-seed:

1 change: 1 addition & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- main
- sbt-common # TODO remove before merge
jobs:
sync:
runs-on: ubuntu-20.04
Expand Down
21 changes: 21 additions & 0 deletions sbt/common.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>

addCommandAlias(
"formatCode",
List(
"headerCreateAll",
"scalafmtSbt",
"scalafmtAll",
"javafmtAll"
).mkString(";")
)

addCommandAlias(
"validateCode",
List(
"headerCheckAll",
"scalafmtSbtCheck",
"scalafmtCheckAll",
"javafmtCheckAll",
).mkString(";")
)

0 comments on commit fdad030

Please sign in to comment.