diff --git a/.github/sync.yml b/.github/sync.yml index 016a689..b9e0873 100644 --- a/.github/sync.yml +++ b/.github/sync.yml @@ -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: diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index df4887c..d6c907b 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -3,6 +3,7 @@ on: push: branches: - main + - sbt-common # TODO remove before merge jobs: sync: runs-on: ubuntu-20.04 diff --git a/sbt/common.sbt b/sbt/common.sbt new file mode 100644 index 0000000..fd83e62 --- /dev/null +++ b/sbt/common.sbt @@ -0,0 +1,21 @@ +// Copyright (C) from 2022 The Play Framework Contributors , 2011-2021 Lightbend Inc. + +addCommandAlias( + "formatCode", + List( + "headerCreateAll", + "scalafmtSbt", + "scalafmtAll", + "javafmtAll" + ).mkString(";") +) + +addCommandAlias( + "validateCode", + List( + "headerCheckAll", + "scalafmtSbtCheck", + "scalafmtCheckAll", + "javafmtCheckAll", + ).mkString(";") +)