Skip to content

Commit f3e85b1

Browse files
committed
maven formatter applied. All Configuration files made public to allow them to be configurable for example in unit tests
1 parent c19545f commit f3e85b1

File tree

125 files changed

+4128
-2674
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+4128
-2674
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ all can be done with zero custom code but by specifying error details in `proper
2525

2626
## Installation
2727

28-
> **Current version: 1.3**
28+
> **Current version: 1.4**
2929
3030
Add the `spring-boot-problem-handler` jar to application dependencies. That is all it takes to get a default working
3131
exception handling mechanism in a Spring boot application.
3232

3333
```xml
3434
<properties>
35-
<spring-boot-problem-handler.version>1.3</spring-boot-problem-handler.version>
35+
<spring-boot-problem-handler.version>1.4</spring-boot-problem-handler.version>
3636
</properties>
3737
```
3838

pom.xml

Lines changed: 53 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.github.officiallysingh</groupId>
88
<artifactId>spring-boot-problem-handler</artifactId>
9-
<version>1.3</version>
9+
<version>1.4</version>
1010
<name>spring-boot-problem-handler</name>
1111
<description>Commons exception handler library</description>
1212
<url>https://github.com/officiallysingh/spring-boot-problem-handler</url>
@@ -42,17 +42,19 @@
4242
<failsafe.version>2.4.4</failsafe.version>
4343
<junit.jupiter.version>5.9.1</junit.jupiter.version>
4444

45+
<scm.connection>scm:git:git@github.com:officiallysingh/spring-boot-problem-handler.git</scm.connection>
4546
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
4647
<maven-javadoc-plugin.version>3.5.0</maven-javadoc-plugin.version>
4748
<maven-gpg-plugin.version>3.1.0</maven-gpg-plugin.version>
4849
<nexus-staging-maven-plugin.version>1.6.13</nexus-staging-maven-plugin.version>
4950
<maven-release-plugin.version>3.0.0-M1</maven-release-plugin.version>
5051
<maven-deploy-plugin.version>3.1.1</maven-deploy-plugin.version>
51-
<scm.connection>scm:git:git@github.com:officiallysingh/spring-boot-problem-handler.git</scm.connection>
52+
<maven-checkstyle-plugin.version>3.3.0</maven-checkstyle-plugin.version>
53+
<formatter-maven-plugin.version>2.23.0</formatter-maven-plugin.version>
5254

5355
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
54-
<maven.compiler.source>17</maven.compiler.source>
55-
<maven.compiler.target>17</maven.compiler.target>
56+
<maven.compiler.source>${java.version}</maven.compiler.source>
57+
<maven.compiler.target>${java.version}</maven.compiler.target>
5658
</properties>
5759

5860
<dependencyManagement>
@@ -169,6 +171,53 @@
169171

170172
<build>
171173
<plugins>
174+
<!-- Format code -->
175+
<plugin>
176+
<groupId>net.revelc.code.formatter</groupId>
177+
<artifactId>formatter-maven-plugin</artifactId>
178+
<version>${formatter-maven-plugin.version}</version>
179+
<configuration>
180+
<configFile>
181+
${project.basedir}/tooling/eclipse-code-formatter.xml</configFile>
182+
<includes>
183+
<include>**/*.java</include>
184+
<include>pom.xml</include>
185+
</includes>
186+
<!-- <excludes>-->
187+
<!-- <exclude>**/*Test.java</exclude>-->
188+
<!-- </excludes>-->
189+
</configuration>
190+
<executions>
191+
<execution>
192+
<goals>
193+
<goal>format</goal>
194+
</goals>
195+
</execution>
196+
</executions>
197+
</plugin>
198+
199+
<!-- Apply checkstyle -->
200+
<!-- <plugin>-->
201+
<!-- <groupId>org.apache.maven.plugins</groupId>-->
202+
<!-- <artifactId>maven-checkstyle-plugin</artifactId>-->
203+
<!-- <version>${maven-checkstyle-plugin.version}</version>-->
204+
<!-- <configuration>-->
205+
<!-- <configLocation>${project.basedir}/tooling/checkstyle.xml</configLocation>-->
206+
<!-- <suppressionsLocation>-->
207+
<!-- ${project.basedir}/tooling/checkstyle-suppressions.xml</suppressionsLocation>-->
208+
<!-- <excludes>**/package-info.java</excludes>-->
209+
<!-- <includeTestSourceDirectory>true</includeTestSourceDirectory>-->
210+
<!-- <skip>true</skip>-->
211+
<!-- </configuration>-->
212+
<!-- <executions>-->
213+
<!-- <execution>-->
214+
<!-- <goals>-->
215+
<!-- <goal>check</goal>-->
216+
<!-- </goals>-->
217+
<!-- </execution>-->
218+
<!-- </executions>-->
219+
<!-- </plugin>-->
220+
172221
<plugin>
173222
<groupId>org.apache.maven.plugins</groupId>
174223
<artifactId>maven-release-plugin</artifactId>

0 commit comments

Comments
 (0)