This is an automated email from the ASF dual-hosted git repository.

mdedetrich pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/incubator-pekko-persistence-jdbc.git


The following commit(s) were added to refs/heads/main by this push:
     new 7c83f37  Update verifyCodeFmt to check java sources
7c83f37 is described below

commit 7c83f37638971701ef61a3a796f81d8dd5fc822f
Author: Matthew de Detrich <[email protected]>
AuthorDate: Tue Apr 4 13:22:16 2023 +0200

    Update verifyCodeFmt to check java sources
---
 build.sbt | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/build.sbt b/build.sbt
index 0761c0f..cc2b7cb 100644
--- a/build.sbt
+++ b/build.sbt
@@ -89,12 +89,8 @@ Global / onLoad := (Global / onLoad).value.andThen { s =>
 }
 
 TaskKey[Unit]("verifyCodeFmt") := {
-  
scalafmtCheckAll.all(ScopeFilter(inAnyProject)).result.value.toEither.left.foreach
 { _ =>
+  
javafmtCheckAll.all(ScopeFilter(inAnyProject)).result.value.toEither.left.foreach
 { _ =>
     throw new MessageOnlyException(
-      "Unformatted Scala code found. Please run 'scalafmtAll' and commit the 
reformatted code")
-  }
-  (Compile / scalafmtSbtCheck).result.value.toEither.left.foreach { _ =>
-    throw new MessageOnlyException(
-      "Unformatted sbt code found. Please run 'scalafmtSbt' and commit the 
reformatted code")
+      "Unformatted Java code found. Please run 'javafmtAll' and commit the 
reformatted code")
   }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to