Skip to content

Commit

Permalink
commit pom
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangtien2k3 committed Aug 20, 2024
1 parent 9129683 commit eb07fd6
Showing 1 changed file with 136 additions and 6 deletions.
142 changes: 136 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,25 @@
<description>a commons java tool lib with spring boot framework</description>
<url/>
<licenses>
<license/>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer/>
<developer>
<id>io.hoangtien2k3</id>
<name>hoangtien2k3</name>
<email>[email protected]</email>
<url>https://hoangtien2k3.github.io</url>
</developer>
</developers>
<scm>
<connection/>
<developerConnection/>
<tag/>
<url/>
<connection>scm:git:git://github.com/hoangtien2k3/fw-commons.git</connection>
<developerConnection>scm:git:ssh://[email protected]:hoangtien2k3/fw-commons.git</developerConnection>
<url>https://github.com/hoangtien2k3/fw-commons</url>
<tag>HEAD</tag>
</scm>

<properties>
Expand All @@ -44,6 +53,7 @@
<javax.annotation.version>1.3.2</javax.annotation.version>
<jackson.databind.version>2.17.1</jackson.databind.version>
<spotless.version>2.43.0</spotless.version>
<file.encoding>UTF-8</file.encoding>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -389,6 +399,126 @@
<target>21</target>
</configuration>
</plugin>

<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>

<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>${spotless.version}</version>
<configuration>
<!--<ratchetFrom>origin/main</ratchetFrom>-->
<formats>
<format>
<includes>
<include>.gitignore</include>
</includes>
<toggleOffOn/>
<trimTrailingWhitespace/>
<endWithNewline/>
<indent>
<tabs>true</tabs>
<spacesPerTab>4</spacesPerTab>
</indent>
</format>
</formats>
<java>
<includes>
<include>src/main/java/**/*.java</include>
<include>src/test/java/**/*.java</include>
</includes>
<formatAnnotations/>
<removeUnusedImports/>
<palantirJavaFormat/>
<importOrder>
<order>java,jakarta,javax,org,com,com.diffplug,com.ezbuy,</order>
</importOrder>
<!-- <licenseHeader>-->
<!-- <content><![CDATA[-->
<!--/*-->
<!-- * Copyright $YEAR author - Hoàng Anh Tiến-->
<!-- *-->
<!-- * Licensed under the Apache License, Version 2.0 (the "License");-->
<!-- * you may not use this file except in compliance with the License.-->
<!-- * You may obtain a copy of the License at-->
<!-- *-->
<!-- * https://www.apache.org/licenses/LICENSE-2.0-->
<!-- *-->
<!-- * Unless required by applicable law or agreed to in writing, software-->
<!-- * distributed under the License is distributed on an "AS IS" BASIS,-->
<!-- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-->
<!-- * See the License for the specific language governing permissions and-->
<!-- * limitations under the License.-->
<!-- */-->
<!-- ]]></content>-->
<!-- </licenseHeader>-->
</java>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>apply</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>

</plugins>
</build>

Expand Down

0 comments on commit eb07fd6

Please sign in to comment.