Skip to content

Commit b39f837

Browse files
sirimyklandmrsladek
authored andcommitted
legg til sppotless i root pom.xml
1 parent 9966df9 commit b39f837

File tree

1 file changed

+57
-14
lines changed

1 file changed

+57
-14
lines changed

pom.xml

Lines changed: 57 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
<kontrakter.version>9.2.2</kontrakter.version>
4141
<tidsserie.version>2.7.1</tidsserie.version>
4242

43+
<spotless.version>2.43.0</spotless.version>
44+
4345
<!-- Forteller til maven-deploy-plugin at artefaktet ikke skal deployes.
4446
Arves og overstyrres i de enkelte artefakter. -->
4547
<maven.deploy.skip>true</maven.deploy.skip>
@@ -224,19 +226,60 @@
224226
<url>https://maven.pkg.github.com/navikt/fp-abakus/</url>
225227
</repository>
226228
</repositories>
229+
<build>
230+
<plugins>
231+
<plugin>
232+
<groupId>com.diffplug.spotless</groupId>
233+
<artifactId>spotless-maven-plugin</artifactId>
234+
<version>${spotless.version}</version>
235+
<configuration>
236+
<java>
237+
<cleanthat/>
238+
<palantirJavaFormat>
239+
<version>2.39.0</version>
240+
<style>PALANTIR</style>
241+
<formatJavadoc>true</formatJavadoc>
242+
</palantirJavaFormat>
243+
<importOrder/>
244+
</java>
245+
246+
<pom>
247+
<sortPom>
248+
<expandEmptyElements>false</expandEmptyElements>
249+
<nrOfIndentSpace>4</nrOfIndentSpace>
250+
</sortPom>
251+
</pom>
252+
<json>
253+
<includes>
254+
<include>src/**/*.json</include>
255+
</includes>
256+
<simple/>
257+
<jackson/>
258+
</json>
227259

228-
<scm>
229-
<connection>scm:git:https://github.com/navikt/fp-abakus.git</connection>
230-
<developerConnection>scm:git:https://github.com/navikt/fp-abakus.git</developerConnection>
231-
<url>https://github.com/navikt/fp-abakus</url>
232-
<tag>HEAD</tag>
233-
</scm>
234-
235-
<distributionManagement>
236-
<repository>
237-
<id>github</id>
238-
<name>Github navikt Maven Packages</name>
239-
<url>https://maven.pkg.github.com/navikt/fp-abakus</url>
240-
</repository>
241-
</distributionManagement>
260+
<markdown>
261+
<includes>
262+
<include>**/*.md</include>
263+
</includes>
264+
<flexmark/>
265+
</markdown>
266+
<yaml>
267+
<includes>
268+
<include>src/**/*.yaml</include>
269+
<include>src/**/*.yml</include>
270+
</includes>
271+
<jackson/>
272+
<prettier/>
273+
</yaml>
274+
</configuration>
275+
<executions>
276+
<execution>
277+
<goals>
278+
<goal>check</goal>
279+
</goals>
280+
</execution>
281+
</executions>
282+
</plugin>
283+
</plugins>
284+
</build>
242285
</project>

0 commit comments

Comments
 (0)