Improve pom.xml configuration

This commit is contained in:
Alexey Andreev 2021-03-18 11:12:11 +03:00
parent e51f247cc6
commit 81bfe3f6e2
19 changed files with 91 additions and 75 deletions

View File

@ -1,13 +1,15 @@
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" <!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd"> "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
<module name="Checker"> <module name="Checker">
<module name="SuppressionCommentFilter"> <module name="LineLength">
<property name="offCommentFormat" value="CHECKSTYLE.OFF\: ?([\w\|]+)"/> <property name="max" value="120"/>
<property name="onCommentFormat" value="CHECKSTYLE.ON\: ?([\w\|]+)"/>
<property name="checkFormat" value="$1"/>
</module> </module>
<module name="TreeWalker"> <module name="TreeWalker">
<module name="FileContentsHolder"/> <module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="CHECKSTYLE.OFF\: ?([\w\|]+)"/>
<property name="onCommentFormat" value="CHECKSTYLE.ON\: ?([\w\|]+)"/>
<property name="checkFormat" value="$1"/>
</module>
<module name="AnnotationUseStyle"/> <module name="AnnotationUseStyle"/>
<module name="MissingOverride"> <module name="MissingOverride">
<property name="javaFiveCompatibility" value="true"/> <property name="javaFiveCompatibility" value="true"/>
@ -63,9 +65,6 @@
<module name="ParameterName"/> <module name="ParameterName"/>
<module name="StaticVariableName"/> <module name="StaticVariableName"/>
<module name="TypeName"/> <module name="TypeName"/>
<module name="LineLength">
<property name="max" value="120"/>
</module>
<module name="GenericWhitespace"/> <module name="GenericWhitespace"/>
<module name="EmptyForInitializerPad"/> <module name="EmptyForInitializerPad"/>
<module name="EmptyForIteratorPad"/> <module name="EmptyForIteratorPad"/>

View File

@ -88,17 +88,14 @@
<dependency> <dependency>
<groupId>com.google.code.gson</groupId> <groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId> <artifactId>gson</artifactId>
<version>2.2.4</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.jcraft</groupId> <groupId>com.jcraft</groupId>
<artifactId>jzlib</artifactId> <artifactId>jzlib</artifactId>
<version>1.1.3</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>joda-time</groupId> <groupId>joda-time</groupId>
<artifactId>joda-time</artifactId> <artifactId>joda-time</artifactId>
<version>2.7</version>
</dependency> </dependency>
</dependencies> </dependencies>
@ -107,7 +104,6 @@
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId> <artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions> <executions>
<execution> <execution>
<id>generate-tz-cache</id> <id>generate-tz-cache</id>

View File

@ -150,7 +150,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version> <version>${maven-javadoc-plugin.version}</version>
<configuration> <configuration>
<show>protected</show> <show>protected</show>
</configuration> </configuration>

View File

@ -82,7 +82,6 @@
<dependency> <dependency>
<groupId>com.carrotsearch</groupId> <groupId>com.carrotsearch</groupId>
<artifactId>hppc</artifactId> <artifactId>hppc</artifactId>
<version>0.7.3</version>
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>
<dependency> <dependency>
@ -113,12 +112,11 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<version>2.16</version>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.apache.maven.surefire</groupId> <groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit47</artifactId> <artifactId>surefire-junit47</artifactId>
<version>2.13</version> <version>${maven-surefire-plugin.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
<configuration> <configuration>

View File

@ -24,7 +24,7 @@
<groupId>org.teavm</groupId> <groupId>org.teavm</groupId>
<artifactId>teavm</artifactId> <artifactId>teavm</artifactId>
<version>0.7.0-SNAPSHOT</version> <version>0.7.0-SNAPSHOT</version>
<relativePath>../..</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
<artifactId>teavm-interop</artifactId> <artifactId>teavm-interop</artifactId>

View File

@ -21,7 +21,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs
<groupId>org.teavm</groupId> <groupId>org.teavm</groupId>
<artifactId>teavm</artifactId> <artifactId>teavm</artifactId>
<version>0.7.0-SNAPSHOT</version> <version>0.7.0-SNAPSHOT</version>
<relativePath>../..</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
<artifactId>teavm-jso-apis</artifactId> <artifactId>teavm-jso-apis</artifactId>

View File

@ -21,7 +21,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs
<groupId>org.teavm</groupId> <groupId>org.teavm</groupId>
<artifactId>teavm</artifactId> <artifactId>teavm</artifactId>
<version>0.7.0-SNAPSHOT</version> <version>0.7.0-SNAPSHOT</version>
<relativePath>../..</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
<artifactId>teavm-jso</artifactId> <artifactId>teavm-jso</artifactId>

View File

@ -21,7 +21,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs
<groupId>org.teavm</groupId> <groupId>org.teavm</groupId>
<artifactId>teavm</artifactId> <artifactId>teavm</artifactId>
<version>0.7.0-SNAPSHOT</version> <version>0.7.0-SNAPSHOT</version>
<relativePath>../..</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
<artifactId>teavm-jso-impl</artifactId> <artifactId>teavm-jso-impl</artifactId>

View File

@ -24,7 +24,7 @@
<groupId>org.teavm</groupId> <groupId>org.teavm</groupId>
<artifactId>teavm</artifactId> <artifactId>teavm</artifactId>
<version>0.7.0-SNAPSHOT</version> <version>0.7.0-SNAPSHOT</version>
<relativePath>../..</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
<artifactId>teavm-metaprogramming-api</artifactId> <artifactId>teavm-metaprogramming-api</artifactId>

112
pom.xml
View File

@ -65,19 +65,46 @@
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<sonatypeOssDistMgmtSnapshotsUrl>https://oss.sonatype.org/content/repositories/snapshots/</sonatypeOssDistMgmtSnapshotsUrl> <sonatypeOssDistMgmtSnapshotsUrl>https://oss.sonatype.org/content/repositories/snapshots/</sonatypeOssDistMgmtSnapshotsUrl>
<html4j.version>1.5</html4j.version> <html4j.version>1.5</html4j.version>
<jetty.version>9.4.38.v20210224</jetty.version>
<slf4j.version>1.7.30</slf4j.version> <slf4j.version>1.7.30</slf4j.version>
<jackson.version>2.12.2</jackson.version>
<idea.version>2018.2.8</idea.version>
<asm.version>9.1</asm.version> <asm.version>9.1</asm.version>
<java.version>1.8</java.version> <java.version>1.8</java.version>
<java-tests.version>11</java-tests.version> <java-tests.version>11</java-tests.version>
<rhino.version>1.7.11</rhino.version> <rhino.version>1.7.11</rhino.version>
<maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
<testng.version>7.1.0</testng.version> <testng.version>7.1.0</testng.version>
<junit.version>4.13.2</junit.version> <junit.version>4.13.2</junit.version>
<commons-cli.version>1.4</commons-cli.version> <commons-cli.version>1.4</commons-cli.version>
<commons-io.version>2.8.0</commons-io.version>
<jzlib.version>1.1.3</jzlib.version>
<joda-time.version>2.7</joda-time.version>
<hppc.version>0.7.3</hppc.version>
<jetty.version>9.4.38.v20210224</jetty.version>
<javax-websocket.version>1.0</javax-websocket.version>
<jackson.version>2.12.2</jackson.version>
<gson.version>2.8.6</gson.version>
<idea.version>2018.2.8</idea.version>
<maven-plugin-api.version>3.3.3</maven-plugin-api.version>
<maven-plugin-annotations.version>3.3</maven-plugin-annotations.version>
<maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
<maven-checkstyle-plugin.version>3.1.2</maven-checkstyle-plugin.version>
<maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
<maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
<maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
<maven-shade-plugin.version>3.2.4</maven-shade-plugin.version>
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
<exec-maven-plugin.version>3.0.0</exec-maven-plugin.version>
<wagon-ftp.version>3.4.3</wagon-ftp.version>
<teavm.test.incremental>false</teavm.test.incremental> <teavm.test.incremental>false</teavm.test.incremental>
<teavm.test.threads>1</teavm.test.threads> <teavm.test.threads>1</teavm.test.threads>
@ -136,7 +163,7 @@
<dependency> <dependency>
<groupId>commons-io</groupId> <groupId>commons-io</groupId>
<artifactId>commons-io</artifactId> <artifactId>commons-io</artifactId>
<version>2.4</version> <version>${commons-io.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>
@ -151,27 +178,27 @@
<dependency> <dependency>
<groupId>org.apache.maven</groupId> <groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId> <artifactId>maven-plugin-api</artifactId>
<version>3.3.3</version> <version>${maven-plugin-api.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.maven.plugin-tools</groupId> <groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId> <artifactId>maven-plugin-annotations</artifactId>
<version>3.3</version> <version>${maven-plugin-annotations.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.maven</groupId> <groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId> <artifactId>maven-core</artifactId>
<version>3.3.3</version> <version>${maven-plugin-api.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.maven</groupId> <groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId> <artifactId>maven-artifact</artifactId>
<version>3.3.3</version> <version>${maven-plugin-api.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax.websocket</groupId> <groupId>javax.websocket</groupId>
<artifactId>javax.websocket-api</artifactId> <artifactId>javax.websocket-api</artifactId>
<version>1.0</version> <version>${javax-websocket.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty</groupId>
@ -223,6 +250,26 @@
<artifactId>commons-cli</artifactId> <artifactId>commons-cli</artifactId>
<version>${commons-cli.version}</version> <version>${commons-cli.version}</version>
</dependency> </dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>${gson.version}</version>
</dependency>
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jzlib</artifactId>
<version>${jzlib.version}</version>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>${joda-time.version}</version>
</dependency>
<dependency>
<groupId>com.carrotsearch</groupId>
<artifactId>hppc</artifactId>
<version>${hppc.version}</version>
</dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
@ -231,7 +278,7 @@
<extension> <extension>
<groupId>org.apache.maven.wagon</groupId> <groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ftp</artifactId> <artifactId>wagon-ftp</artifactId>
<version>3.4.3</version> <version>${wagon-ftp.version}</version>
</extension> </extension>
</extensions> </extensions>
<pluginManagement> <pluginManagement>
@ -248,7 +295,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.1</version> <version>${maven-javadoc-plugin.version}</version>
<executions> <executions>
<execution> <execution>
<id>build-javadoc</id> <id>build-javadoc</id>
@ -270,7 +317,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId> <artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version> <version>${maven-source-plugin.version}</version>
<executions> <executions>
<execution> <execution>
<id>attach-sources</id> <id>attach-sources</id>
@ -284,12 +331,12 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<version>2.21.0</version> <version>${maven-surefire-plugin.version}</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId> <artifactId>maven-checkstyle-plugin</artifactId>
<version>2.16</version> <version>${maven-checkstyle-plugin.version}</version>
<executions> <executions>
<execution> <execution>
<id>validate</id> <id>validate</id>
@ -313,42 +360,23 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version> <version>${maven-jar-plugin.version}</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId> <artifactId>maven-shade-plugin</artifactId>
<version>3.1.1</version> <version>${maven-shade-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${exec-maven-plugin.version}</version>
</plugin> </plugin>
</plugins> </plugins>
</pluginManagement> </pluginManagement>
</build> </build>
<profiles> <profiles>
<profile>
<id>htmlUnit</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.16</version>
<configuration>
<systemProperties>
<teavm.junit.js.runner>htmlunit</teavm.junit.js.runner>
</systemProperties>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
<profile> <profile>
<id>with-samples</id> <id>with-samples</id>
<activation> <activation>
@ -397,7 +425,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId> <artifactId>maven-gpg-plugin</artifactId>
<version>1.4</version> <version>${maven-gpg-plugin.version}</version>
<executions> <executions>
<execution> <execution>
<id>sign-artifacts</id> <id>sign-artifacts</id>

View File

@ -73,7 +73,6 @@
<dependency> <dependency>
<groupId>com.carrotsearch</groupId> <groupId>com.carrotsearch</groupId>
<artifactId>hppc</artifactId> <artifactId>hppc</artifactId>
<version>0.7.3</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
@ -117,12 +116,11 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<version>2.16</version>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.apache.maven.surefire</groupId> <groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit47</artifactId> <artifactId>surefire-junit47</artifactId>
<version>2.16</version> <version>${maven-surefire-plugin.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
<configuration> <configuration>

View File

@ -21,7 +21,7 @@
<groupId>org.teavm</groupId> <groupId>org.teavm</groupId>
<artifactId>teavm</artifactId> <artifactId>teavm</artifactId>
<version>0.7.0-SNAPSHOT</version> <version>0.7.0-SNAPSHOT</version>
<relativePath>../..</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
<artifactId>teavm-c-incremental</artifactId> <artifactId>teavm-c-incremental</artifactId>
@ -47,7 +47,6 @@
<dependency> <dependency>
<groupId>com.carrotsearch</groupId> <groupId>com.carrotsearch</groupId>
<artifactId>hppc</artifactId> <artifactId>hppc</artifactId>
<version>0.7.3</version>
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>
<dependency> <dependency>

View File

@ -21,7 +21,7 @@
<groupId>org.teavm</groupId> <groupId>org.teavm</groupId>
<artifactId>teavm</artifactId> <artifactId>teavm</artifactId>
<version>0.7.0-SNAPSHOT</version> <version>0.7.0-SNAPSHOT</version>
<relativePath>../..</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
<artifactId>teavm-chrome-rdp</artifactId> <artifactId>teavm-chrome-rdp</artifactId>

View File

@ -21,7 +21,7 @@
<groupId>org.teavm</groupId> <groupId>org.teavm</groupId>
<artifactId>teavm</artifactId> <artifactId>teavm</artifactId>
<version>0.7.0-SNAPSHOT</version> <version>0.7.0-SNAPSHOT</version>
<relativePath>../..</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
<artifactId>teavm-classlib-comparison-gen</artifactId> <artifactId>teavm-classlib-comparison-gen</artifactId>

View File

@ -91,7 +91,6 @@
<dependency> <dependency>
<groupId>com.carrotsearch</groupId> <groupId>com.carrotsearch</groupId>
<artifactId>hppc</artifactId> <artifactId>hppc</artifactId>
<version>0.7.3</version>
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>
<dependency> <dependency>

View File

@ -21,7 +21,7 @@
<groupId>org.teavm</groupId> <groupId>org.teavm</groupId>
<artifactId>teavm</artifactId> <artifactId>teavm</artifactId>
<version>0.7.0-SNAPSHOT</version> <version>0.7.0-SNAPSHOT</version>
<relativePath>../..</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
<artifactId>teavm-tooling</artifactId> <artifactId>teavm-tooling</artifactId>

View File

@ -21,7 +21,7 @@
<groupId>org.teavm</groupId> <groupId>org.teavm</groupId>
<artifactId>teavm</artifactId> <artifactId>teavm</artifactId>
<version>0.7.0-SNAPSHOT</version> <version>0.7.0-SNAPSHOT</version>
<relativePath>../..</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
<artifactId>teavm-devserver</artifactId> <artifactId>teavm-devserver</artifactId>

View File

@ -42,7 +42,6 @@
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId> <artifactId>exec-maven-plugin</artifactId>
<version>1.3.2</version>
<executions> <executions>
<execution> <execution>
<id>copy-dependencies</id> <id>copy-dependencies</id>

View File

@ -21,7 +21,7 @@
<groupId>org.teavm</groupId> <groupId>org.teavm</groupId>
<artifactId>teavm</artifactId> <artifactId>teavm</artifactId>
<version>0.7.0-SNAPSHOT</version> <version>0.7.0-SNAPSHOT</version>
<relativePath>../..</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
<artifactId>teavm-maven</artifactId> <artifactId>teavm-maven</artifactId>