Skip to content

Commit

Permalink
Update makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Pavlov authored and Konstantin Pavlov committed Nov 22, 2024
1 parent 26e51ac commit f8c71a2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ build:
mvn clean verify site

lint:prepare
ktlint
ktlint && \
mvn spotless:check

# https://docs.openrewrite.org/recipes/maven/bestpractices
format:prepare
ktlint --format \
mvn spotless:apply \
# https://docs.openrewrite.org/recipes/maven/bestpractices
ktlint --format && \
mvn spotless:apply && \
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
-Drewrite.activeRecipes=org.openrewrite.maven.BestPractices \
-Drewrite.exportDatatables=true
Expand Down
8 changes: 6 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>me.kpavlov.project</groupId>
Expand Down Expand Up @@ -199,6 +198,11 @@
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.11.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.8.0</version>
</plugin>
<plugin>
<!-- https://github.com/diffplug/spotless/blob/main/plugin-maven -->
<groupId>com.diffplug.spotless</groupId>
Expand Down

0 comments on commit f8c71a2

Please sign in to comment.