toolbox
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.github.hughwick</groupId> <artifactId>toolbox</artifactId> <version>2.0.2</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.github.hughwick</groupId> <artifactId>toolbox</artifactId> <version>2.0.2</version> <properties> <!--============================== MAIN ==============================--> <java.version>11</java.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <junit-jupiter.version>5.7.2</junit-jupiter.version> <!--========================== All Plugins START =====================--> <plugin.compiler.version>3.8.1</plugin.compiler.version> <plugin.coveralls.version>2.8.3</plugin.coveralls.version> <plugin.cobertura.version>2.7</plugin.cobertura.version> <plugin.surefire.version>2.18.1</plugin.surefire.version> <plugin.surefire.skip-it>false</plugin.surefire.skip-it> <plugin.surefire.ignore-failure>false</plugin.surefire.ignore-failure> <plugin.maven-source-plugin.version>2.2.1</plugin.maven-source-plugin.version> <plugin.maven-javadoc-plugin.version>3.3.1</plugin.maven-javadoc-plugin.version> <plugin.maven-gpg-plugin.version>1.5</plugin.maven-gpg-plugin.version> <!--============================== other ==============================--> <okhttp.version>4.9.2</okhttp.version> <commons-collections4.version>4.4</commons-collections4.version> <servlet-api.version>4.0.1</servlet-api.version> <json-lib.version>2.4</json-lib.version> <google-guava.version>31.0.1-jre</google-guava.version> <google-gson.version>2.8.8</google-gson.version> <emoji-converter.version>1.0.1</emoji-converter.version> <jakarta.validation-api.version>2.0.2</jakarta.validation-api.version> <kryo.version>4.0.2</kryo.version> <jsoup.version>1.13.1</jsoup.version> <thumbnailator.version>0.4.14</thumbnailator.version> <fastjson.version>1.2.78</fastjson.version> <lombok.version>1.18.20</lombok.version> <slf4j.version>1.7.32</slf4j.version> <ip2region.version>1.7.2</ip2region.version> </properties> <dependencies> <!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api --> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> <version>${junit-jupiter.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-collections4</artifactId> <version>${commons-collections4.version}</version> </dependency> <dependency> <groupId>com.squareup.okhttp3</groupId> <artifactId>okhttp</artifactId> <version>${okhttp.version}</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>${servlet-api.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>jakarta.validation</groupId> <artifactId>jakarta.validation-api</artifactId> <version>${jakarta.validation-api.version}</version> </dependency> <!-- Kryo是一个快速高效的Java序列化框架 https://mvnrepository.com/artifact/com.esotericsoftware/kryo --> <dependency> <groupId>com.esotericsoftware</groupId> <artifactId>kryo</artifactId> <version>${kryo.version}</version> </dependency> <!-- 谷歌套件 https://mvnrepository.com/artifact/com.google.guava/guava --> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>${google-guava.version}</version> </dependency> <!-- 图片压缩 https://mvnrepository.com/artifact/net.coobird/thumbnailator --> <dependency> <groupId>net.coobird</groupId> <artifactId>thumbnailator</artifactId> <version>${thumbnailator.version}</version> </dependency> <dependency> <groupId>net.sf.json-lib</groupId> <artifactId>json-lib</artifactId> <version>${json-lib.version}</version> <classifier>jdk15</classifier> </dependency> <dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>${google-gson.version}</version> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>${fastjson.version}</version> </dependency> <!-- 解析HTML https://mvnrepository.com/artifact/org.jsoup/jsoup --> <dependency> <groupId>org.jsoup</groupId> <artifactId>jsoup</artifactId> <version>${jsoup.version}</version> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>${lombok.version}</version> <scope>provided</scope> </dependency> <!-- 第三方开源emoji表情过滤--> <dependency> <groupId>com.github.binarywang</groupId> <artifactId>java-emoji-converter</artifactId> <version>${emoji-converter.version}</version> <exclusions> <exclusion> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>${slf4j.version}</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>${slf4j.version}</version> </dependency> <!-- IP解析 https://mvnrepository.com/artifact/org.lionsoul/ip2region --> <dependency> <groupId>org.lionsoul</groupId> <artifactId>ip2region</artifactId> <version>${ip2region.version}</version> </dependency> </dependencies> <build> <plugins> <!--compiler plugin --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>${plugin.compiler.version}</version> <configuration> <source>${java.version}</source> <target>${java.version}</target> <encoding>${project.build.sourceEncoding}</encoding> <skip>true</skip> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>${plugin.surefire.version}</version> <configuration> <skipTests>${plugin.surefire.skip-it}</skipTests> <testFailureIgnore>${plugin.surefire.ignore-failure}</testFailureIgnore> <skip>true</skip> </configuration> </plugin> <!--=================================== coveralls START ===================================--> <!--mvn cobertura:cobertura coveralls:report -DrepoToken=yourcoverallsprojectrepositorytoken--> <!-- <plugin>--> <!-- <groupId>org.kt3k.gradle.plugin</groupId>--> <!-- <artifactId>coveralls-gradle-plugin</artifactId>--> <!-- <version>${plugin.coveralls.version}</version>--> <!-- </plugin>--> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>${plugin.cobertura.version}</version> <configuration> <format>xml</format> <maxmem>256m</maxmem> <!-- aggregated reports for multi-module projects --> <aggregate>true</aggregate> <check/> </configuration> </plugin> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.8.6</version> <executions> <execution> <id>prepare-agent</id> <goals> <goal>prepare-agent</goal> </goals> </execution> </executions> </plugin> <!--=================================== coveralls END ===================================--> <!--sonar--> <plugin> <groupId>org.sonarsource.scanner.maven</groupId> <artifactId>sonar-maven-plugin</artifactId> <version>3.1.1</version> </plugin> </plugins> </build> <!--============================== ADD For sonatype START ==============================--> <parent> <groupId>org.sonatype.oss</groupId> <artifactId>oss-parent</artifactId> <version>7</version> </parent> <licenses> <license> <name>The Apache Software License, Version 2.0</name> <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> <distribution>repo,manual</distribution> </license> </licenses> <!-- SCM信息 --> <scm> <connection>scm:git:https://github.com/HughWick/toolbox.git</connection> <developerConnection>scm:git:https://github.com/HughWick/toolbox.git</developerConnection> <url>https://github.com/HughWick/toolbox</url> <tag>1.0.1</tag> </scm> <!-- 开发者信息 --> <developers> <developer> <name>Hugh Wick</name> <email>dang_star@live.com</email> <organization>personal</organization> <url>https://github.com/HughWick</url> </developer> </developers> <!--============================== ADD For sonatype END ==============================--> <profiles> <profile> <id>release</id> <build> <plugins> <!-- Source --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>${plugin.maven-source-plugin.version}</version> <executions> <execution> <phase>package</phase> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <!-- Javadoc --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>${plugin.maven-javadoc-plugin.version}</version> <executions> <execution> <phase>package</phase> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <!-- GPG --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>${plugin.maven-gpg-plugin.version}</version> <executions> <execution> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <distributionManagement> <snapshotRepository> <id>snapshot</id> <url>https://oss.sonatype.org/content/repositories/snapshots/</url> </snapshotRepository> <repository> <id>snapshot</id> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> </repository> </distributionManagement> </profile> </profiles> </project>