|
40 | 40 | <kontrakter.version>9.2.1</kontrakter.version>
|
41 | 41 | <tidsserie.version>2.7.1</tidsserie.version>
|
42 | 42 |
|
| 43 | + <spotless.version>2.43.0</spotless.version> |
| 44 | + |
43 | 45 | <!-- Forteller til maven-deploy-plugin at artefaktet ikke skal deployes.
|
44 | 46 | Arves og overstyrres i de enkelte artefakter. -->
|
45 | 47 | <maven.deploy.skip>true</maven.deploy.skip>
|
|
224 | 226 | <url>https://maven.pkg.github.com/navikt/fp-abakus/</url>
|
225 | 227 | </repository>
|
226 | 228 | </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> |
227 | 259 |
|
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> |
242 | 285 | </project>
|
0 commit comments