Skip to content

Commit 7a4b06c

Browse files
committed
Spotless rules
1 parent 4df26e7 commit 7a4b06c

File tree

1 file changed

+49
-34
lines changed

1 file changed

+49
-34
lines changed

pom.xml

Lines changed: 49 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<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">
53
<modelVersion>4.0.0</modelVersion>
64

75
<groupId>com.michelin.kafka</groupId>
@@ -23,27 +21,20 @@
2321

2422
<dependencies>
2523
<dependency>
26-
<groupId>org.apache.kafka</groupId>
27-
<artifactId>kafka-streams</artifactId>
28-
<version>${kafka-streams.version}</version>
29-
</dependency>
30-
31-
<dependency>
32-
<groupId>org.slf4j</groupId>
33-
<artifactId>slf4j-api</artifactId>
34-
<version>${slf4j-api.version}</version>
24+
<groupId>ch.qos.logback</groupId>
25+
<artifactId>logback-classic</artifactId>
26+
<version>${logback.version}</version>
3527
</dependency>
3628

3729
<dependency>
3830
<groupId>ch.qos.logback</groupId>
3931
<artifactId>logback-core</artifactId>
4032
<version>${logback.version}</version>
4133
</dependency>
42-
4334
<dependency>
44-
<groupId>ch.qos.logback</groupId>
45-
<artifactId>logback-classic</artifactId>
46-
<version>${logback.version}</version>
35+
<groupId>org.apache.kafka</groupId>
36+
<artifactId>kafka-streams</artifactId>
37+
<version>${kafka-streams.version}</version>
4738
</dependency>
4839

4940
<dependency>
@@ -59,27 +50,16 @@
5950
<version>${junit-jupiter.version}</version>
6051
<scope>test</scope>
6152
</dependency>
53+
54+
<dependency>
55+
<groupId>org.slf4j</groupId>
56+
<artifactId>slf4j-api</artifactId>
57+
<version>${slf4j-api.version}</version>
58+
</dependency>
6259
</dependencies>
6360

6461
<build>
6562
<plugins>
66-
<plugin>
67-
<groupId>com.google.cloud.tools</groupId>
68-
<artifactId>jib-maven-plugin</artifactId>
69-
<version>${jib-maven-plugin.version}</version>
70-
<configuration>
71-
<from>
72-
<image>eclipse-temurin:21-jre-alpine</image>
73-
</from>
74-
<to>
75-
<image>docker.io/michelin/${project.artifactId}:${project.version}</image>
76-
<tags>
77-
<tag>latest</tag>
78-
</tags>
79-
</to>
80-
</configuration>
81-
</plugin>
82-
8363
<plugin>
8464
<groupId>com.diffplug.spotless</groupId>
8565
<artifactId>spotless-maven-plugin</artifactId>
@@ -104,6 +84,24 @@
10484
<file>.spotless/HEADER</file>
10585
</licenseHeader>
10686
</java>
87+
<pom>
88+
<includes>
89+
<include>pom.xml</include>
90+
</includes>
91+
<sortPom>
92+
<nrOfIndentSpace>4</nrOfIndentSpace>
93+
<expandEmptyElements>false</expandEmptyElements>
94+
<spaceBeforeCloseEmptyElement>true</spaceBeforeCloseEmptyElement>
95+
<sortDependencies>groupId,artifactId</sortDependencies>
96+
<sortDependencyManagement>groupId,artifactId</sortDependencyManagement>
97+
<sortDependencyExclusions>groupId,artifactId</sortDependencyExclusions>
98+
<sortPlugins>groupId,artifactId</sortPlugins>
99+
<sortProperties>true</sortProperties>
100+
<sortModules>true</sortModules>
101+
<endWithNewline />
102+
<sortExecutions>true</sortExecutions>
103+
</sortPom>
104+
</pom>
107105
</configuration>
108106
<executions>
109107
<execution>
@@ -113,7 +111,24 @@
113111
</execution>
114112
</executions>
115113
</plugin>
114+
115+
<plugin>
116+
<groupId>com.google.cloud.tools</groupId>
117+
<artifactId>jib-maven-plugin</artifactId>
118+
<version>${jib-maven-plugin.version}</version>
119+
<configuration>
120+
<from>
121+
<image>eclipse-temurin:21-jre-alpine</image>
122+
</from>
123+
<to>
124+
<image>docker.io/michelin/${project.artifactId}:${project.version}</image>
125+
<tags>
126+
<tag>latest</tag>
127+
</tags>
128+
</to>
129+
</configuration>
130+
</plugin>
116131
</plugins>
117132
</build>
118133

119-
</project>
134+
</project>

0 commit comments

Comments
 (0)