This is an automated email from the ASF dual-hosted git repository. mercyblitz pushed a commit to branch 0.1.x in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-spring-boot-project.git
The following commit(s) were added to refs/heads/0.1.x by this push: new c62d0ee Update maven plugins c62d0ee is described below commit c62d0ee9d19c72b98c1c7f14e879a92d4a9fc0fa Author: mercyblitz <mercybl...@gmail.com> AuthorDate: Wed Jun 20 17:50:32 2018 +0800 Update maven plugins --- dubbo-spring-boot-parent/pom.xml | 111 +++++++++++++++++++++++++++++++++++---- 1 file changed, 100 insertions(+), 11 deletions(-) diff --git a/dubbo-spring-boot-parent/pom.xml b/dubbo-spring-boot-parent/pom.xml index 4b5e48e..cd6a73b 100644 --- a/dubbo-spring-boot-parent/pom.xml +++ b/dubbo-spring-boot-parent/pom.xml @@ -18,18 +18,27 @@ <properties> <java.version>1.7</java.version> + <java.source.version>1.7</java.source.version> + <java.target.version>1.7</java.target.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> - <spring-boot.version>1.5.13.RELEASE</spring-boot.version> + <spring-boot.version>1.5.14.RELEASE</spring-boot.version> <dubbo.version>2.6.2</dubbo.version> <zkclient.version>0.2</zkclient.version> <zookeeper.version>3.4.9</zookeeper.version> <curator-framework.version>2.12.0</curator-framework.version> + <!-- Build args --> + <argline>-server -Xms256m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=128m -Dfile.encoding=UTF-8 + -Djava.net.preferIPv4Stack=true + </argline> + + <!-- Maven plugins --> + <maven-jar-plugin.version>3.0.2</maven-jar-plugin.version> + <maven-compiler-plugin.version>3.6.0</maven-compiler-plugin.version> + <maven-source-plugin.version>3.0.1</maven-source-plugin.version> + <maven-jacoco-plugin.version>0.8.1</maven-jacoco-plugin.version> <maven-gpg-plugin.version>1.5</maven-gpg-plugin.version> - <maven-jar.version>3.0.2</maven-jar.version> - <maven-compiler.version>3.6.0</maven-compiler.version> - <maven-source.version>3.0.1</maven-source.version> - <maven-enforcer.version>3.0.0-M1</maven-enforcer.version> + <apache-rat-plugin.version>0.12</apache-rat-plugin.version> </properties> <dependencyManagement> @@ -178,7 +187,7 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> - <version>${maven-jar.version}</version> + <version>${maven-jar-plugin.version}</version> <configuration> <archive> <addMavenDescriptor>true</addMavenDescriptor> @@ -187,22 +196,54 @@ <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> <addDefaultImplementationEntries>true</addDefaultImplementationEntries> </manifest> + <manifestEntries> + <Specification-Version>${project.version}</Specification-Version> + <Implementation-Version>${project.version}</Implementation-Version> + </manifestEntries> </archive> </configuration> </plugin> + <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> - <version>${maven-compiler.version}</version> + <version>${maven-compiler-plugin.version}</version> <configuration> - <source>${java.version}</source> - <target>${java.version}</target> + <compilerArgument>-proc:none</compilerArgument> + <fork>true</fork> + <source>${java.source.version}</source> + <target>${java.target.version}</target> + <encoding>${file.encoding}</encoding> </configuration> </plugin> + + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>${maven-jacoco-plugin.version}</version> + <executions> + <execution> + <id>jacoco-initialize</id> + <goals> + <goal>prepare-agent</goal> + </goals> + <configuration> + <propertyName>jacocoArgLine</propertyName> + </configuration> + </execution> + <execution> + <id>jacoco-site</id> + <phase>package</phase> + <goals> + <goal>report</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> - <version>${maven-enforcer.version}</version> <executions> <execution> <id>enforce-rules</id> @@ -229,7 +270,7 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> - <version>${maven-source.version}</version> + <version>${maven-source-plugin.version}</version> <executions> <execution> <id>attach-sources</id> @@ -239,6 +280,54 @@ </execution> </executions> </plugin> + <plugin> + <groupId>org.apache.rat</groupId> + <artifactId>apache-rat-plugin</artifactId> + <version>${apache-rat-plugin.version}</version> + <executions> + <execution> + <id>verify.rat</id> + <phase>verify</phase> + <goals> + <goal>check</goal> + </goals> + <configuration> + <excludes> + <exclude>**/*.versionsBackup</exclude> + <exclude>**/.idea/</exclude> + <exclude>**/*.iml</exclude> + <exclude>**/*.txt</exclude> + <exclude>**/*.load</exclude> + <exclude>**/*.flex</exclude> + <exclude>**/*.fc</exclude> + <exclude>**/*.javascript</exclude> + <exclude>**/*.properties</exclude> + <exclude>**/*.thrift</exclude> + <exclude>**/*.sh</exclude> + <exclude>**/*.bat</exclude> + <exclude>**/*.md</exclude> + <exclude>.git/</exclude> + <exclude>.gitignore</exclude> + <!-- ASF jenkins box puts the Maven repo in our root directory. --> + <exclude>.repository/</exclude> + <exclude>**/.settings/*</exclude> + <exclude>**/.classpath</exclude> + <exclude>**/.project</exclude> + <exclude>**/target/**</exclude> + <exclude>**/*.log</exclude> + <exclude>CODE_OF_CONDUCT.md</exclude> + <exclude>.codecov.yml</exclude> + <exclude>.travis.yml</exclude> + <exclude>PULL_REQUEST_TEMPLATE.md</exclude> + <exclude>CONTRIBUTING.md</exclude> + <exclude>README.md</exclude> + <exclude>**/codestyle/*</exclude> + <exclude>**/resources/META-INF/**</exclude> + </excludes> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> </project> \ No newline at end of file