-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Makefile and integrate Spotless plugin.
- Loading branch information
Konstantin Pavlov
authored and
Konstantin Pavlov
committed
Nov 22, 2024
1 parent
a81e629
commit 9a3300d
Showing
3 changed files
with
53 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
build: | ||
mvn clean verify site | ||
lint: | ||
# brew install ktlint | ||
ktlint --format | ||
# https://docs.openrewrite.org/recipes/maven/bestpractices | ||
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \ | ||
-Drewrite.activeRecipes=org.openrewrite.maven.BestPractices \ | ||
-Drewrite.exportDatatables=true | ||
mvn clean verify site | ||
|
||
lint:prepare | ||
ktlint | ||
|
||
format:prepare | ||
ktlint --format \ | ||
mvn spotless:apply \ | ||
# https://docs.openrewrite.org/recipes/maven/bestpractices | ||
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \ | ||
-Drewrite.activeRecipes=org.openrewrite.maven.BestPractices \ | ||
-Drewrite.exportDatatables=true | ||
|
||
prepare: | ||
brew install ktlint --quiet | ||
|
||
all: format lint build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters