Skip to content

Commit eb07fd6

Browse files
committed
commit pom
1 parent 9129683 commit eb07fd6

File tree

1 file changed

+136
-6
lines changed

1 file changed

+136
-6
lines changed

pom.xml

Lines changed: 136 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,25 @@
1515
<description>a commons java tool lib with spring boot framework</description>
1616
<url/>
1717
<licenses>
18-
<license/>
18+
<license>
19+
<name>Apache License, Version 2.0</name>
20+
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
21+
<distribution>repo</distribution>
22+
</license>
1923
</licenses>
2024
<developers>
21-
<developer/>
25+
<developer>
26+
<id>io.hoangtien2k3</id>
27+
<name>hoangtien2k3</name>
28+
<email>[email protected]</email>
29+
<url>https://hoangtien2k3.github.io</url>
30+
</developer>
2231
</developers>
2332
<scm>
24-
<connection/>
25-
<developerConnection/>
26-
<tag/>
27-
<url/>
33+
<connection>scm:git:git://github.com/hoangtien2k3/fw-commons.git</connection>
34+
<developerConnection>scm:git:ssh://[email protected]:hoangtien2k3/fw-commons.git</developerConnection>
35+
<url>https://github.com/hoangtien2k3/fw-commons</url>
36+
<tag>HEAD</tag>
2837
</scm>
2938

3039
<properties>
@@ -44,6 +53,7 @@
4453
<javax.annotation.version>1.3.2</javax.annotation.version>
4554
<jackson.databind.version>2.17.1</jackson.databind.version>
4655
<spotless.version>2.43.0</spotless.version>
56+
<file.encoding>UTF-8</file.encoding>
4757
</properties>
4858

4959
<dependencyManagement>
@@ -389,6 +399,126 @@
389399
<target>21</target>
390400
</configuration>
391401
</plugin>
402+
403+
<plugin>
404+
<groupId>org.springframework.boot</groupId>
405+
<artifactId>spring-boot-maven-plugin</artifactId>
406+
</plugin>
407+
408+
<plugin>
409+
<groupId>com.diffplug.spotless</groupId>
410+
<artifactId>spotless-maven-plugin</artifactId>
411+
<version>${spotless.version}</version>
412+
<configuration>
413+
<!--<ratchetFrom>origin/main</ratchetFrom>-->
414+
<formats>
415+
<format>
416+
<includes>
417+
<include>.gitignore</include>
418+
</includes>
419+
<toggleOffOn/>
420+
<trimTrailingWhitespace/>
421+
<endWithNewline/>
422+
<indent>
423+
<tabs>true</tabs>
424+
<spacesPerTab>4</spacesPerTab>
425+
</indent>
426+
</format>
427+
</formats>
428+
<java>
429+
<includes>
430+
<include>src/main/java/**/*.java</include>
431+
<include>src/test/java/**/*.java</include>
432+
</includes>
433+
<formatAnnotations/>
434+
<removeUnusedImports/>
435+
<palantirJavaFormat/>
436+
<importOrder>
437+
<order>java,jakarta,javax,org,com,com.diffplug,com.ezbuy,</order>
438+
</importOrder>
439+
<!-- <licenseHeader>-->
440+
<!-- <content><![CDATA[-->
441+
<!--/*-->
442+
<!-- * Copyright $YEAR author - Hoàng Anh Tiến-->
443+
<!-- *-->
444+
<!-- * Licensed under the Apache License, Version 2.0 (the "License");-->
445+
<!-- * you may not use this file except in compliance with the License.-->
446+
<!-- * You may obtain a copy of the License at-->
447+
<!-- *-->
448+
<!-- * https://www.apache.org/licenses/LICENSE-2.0-->
449+
<!-- *-->
450+
<!-- * Unless required by applicable law or agreed to in writing, software-->
451+
<!-- * distributed under the License is distributed on an "AS IS" BASIS,-->
452+
<!-- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-->
453+
<!-- * See the License for the specific language governing permissions and-->
454+
<!-- * limitations under the License.-->
455+
<!-- */-->
456+
<!-- ]]></content>-->
457+
<!-- </licenseHeader>-->
458+
</java>
459+
</configuration>
460+
<executions>
461+
<execution>
462+
<phase>compile</phase>
463+
<goals>
464+
<goal>apply</goal>
465+
</goals>
466+
</execution>
467+
</executions>
468+
</plugin>
469+
470+
<plugin>
471+
<groupId>org.apache.maven.plugins</groupId>
472+
<artifactId>maven-source-plugin</artifactId>
473+
<version>3.2.1</version>
474+
<executions>
475+
<execution>
476+
<id>attach-sources</id>
477+
<goals>
478+
<goal>jar</goal>
479+
</goals>
480+
</execution>
481+
</executions>
482+
</plugin>
483+
<plugin>
484+
<groupId>org.apache.maven.plugins</groupId>
485+
<artifactId>maven-javadoc-plugin</artifactId>
486+
<version>3.3.1</version>
487+
<executions>
488+
<execution>
489+
<id>attach-javadocs</id>
490+
<goals>
491+
<goal>jar</goal>
492+
</goals>
493+
</execution>
494+
</executions>
495+
</plugin>
496+
<plugin>
497+
<groupId>org.apache.maven.plugins</groupId>
498+
<artifactId>maven-gpg-plugin</artifactId>
499+
<version>3.0.1</version>
500+
<executions>
501+
<execution>
502+
<id>sign-artifacts</id>
503+
<phase>verify</phase>
504+
<goals>
505+
<goal>sign</goal>
506+
</goals>
507+
</execution>
508+
</executions>
509+
</plugin>
510+
<plugin>
511+
<groupId>org.sonatype.plugins</groupId>
512+
<artifactId>nexus-staging-maven-plugin</artifactId>
513+
<version>1.6.8</version>
514+
<extensions>true</extensions>
515+
<configuration>
516+
<serverId>ossrh</serverId>
517+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
518+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
519+
</configuration>
520+
</plugin>
521+
392522
</plugins>
393523
</build>
394524

0 commit comments

Comments
 (0)