Last active
April 13, 2018 19:49
-
-
Save danylkaaa/2e9d8ea19228287a6db368a52227147f to your computer and use it in GitHub Desktop.
maven junit5, javadoc support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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>zulus</groupId> | |
<artifactId>OOPLabs2</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>jar</packaging> | |
<name>OOPLabs2</name> | |
<url>{REPO HERE}</url> | |
<developers> | |
<developer> | |
<id>ZulusK</id> | |
<name>Danil Kazimirov</name> | |
<email>[email protected]</email> | |
<url>https://github.com/ZulusK/</url> | |
</developer> | |
</developers> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<java.version>1.8</java.version> | |
<junit.version>4.12</junit.version> | |
<junit.jupiter.version>5.1.0</junit.jupiter.version> | |
<junit.vintage.version>5.1.0</junit.vintage.version> | |
<junit.platform.version>1.1.0</junit.platform.version> | |
<github.global.server>github</github.global.server> | |
<github.global.repositoryName>${project.artifactId}</github.global.repositoryName> | |
</properties> | |
<build> | |
<resources> | |
<resource> | |
<directory>src/main/resources</directory> | |
</resource> | |
</resources> | |
<plugins> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>exec-maven-plugin</artifactId> | |
<version>1.6.0</version> | |
<executions> | |
<execution> | |
<phase>verify</phase> | |
<id>extra</id> | |
<goals> | |
<goal>java</goal> | |
</goals> | |
<configuration> | |
<mainClass> | |
zulus.extra.Main | |
</mainClass> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-site-plugin</artifactId> | |
<version>3.3</version> | |
<configuration> | |
<reportPlugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-javadoc-plugin</artifactId> | |
<version>2.9.1</version> | |
<configuration> | |
<aggregate>true</aggregate> | |
<breakiterator>true</breakiterator> | |
<detectLinks>true</detectLinks> | |
<detectOfflineLinks>true</detectOfflineLinks> | |
<linksource>true</linksource> | |
<show>private</show> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-project-info-reports-plugin</artifactId> | |
<version>2.7</version> | |
<configuration> | |
<aggregate>true</aggregate> | |
<dependencyDetailsEnabled>true</dependencyDetailsEnabled> | |
<dependencyLocationsEnabled>true</dependencyLocationsEnabled> | |
</configuration> | |
</plugin> | |
</reportPlugins> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>com.github.github</groupId> | |
<artifactId>site-maven-plugin</artifactId> | |
<version>0.12</version> | |
<configuration> | |
<oauth2Token>${env.GITHUB_OAUTH_TOKEN}</oauth2Token> | |
<message>Building site for ${project.version}</message> | |
</configuration> | |
<executions> | |
<execution> | |
<goals> | |
<goal>site</goal> | |
</goals> | |
<phase>site</phase> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-javadoc-plugin</artifactId> | |
<version>3.0.0</version> | |
<configuration> | |
<show>private</show> | |
<nohelp>true</nohelp> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.jacoco</groupId> | |
<artifactId>jacoco-maven-plugin</artifactId> | |
<version>0.8.1</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>prepare-agent</goal> | |
</goals> | |
</execution> | |
<execution> | |
<id>report</id> | |
<phase>test</phase> | |
<goals> | |
<goal>report</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>3.7.0</version> | |
<configuration> | |
<source>${java.version}</source> | |
<target>${java.version}</target> | |
</configuration> | |
</plugin> | |
<plugin> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>2.19.1</version> | |
<configuration> | |
<includes> | |
<include>**/Test*.java</include> | |
<include>**/*Test.java</include> | |
<include>**/*Tests.java</include> | |
<include>**/*TestCase.java</include> | |
</includes> | |
<properties> | |
<excludeTags>slow</excludeTags> | |
</properties> | |
</configuration> | |
<dependencies> | |
<dependency> | |
<groupId>org.junit.platform</groupId> | |
<artifactId>junit-platform-surefire-provider</artifactId> | |
<version>${junit.platform.version}</version> | |
</dependency> | |
</dependencies> | |
</plugin> | |
</plugins> | |
</build> | |
<dependencies> | |
<dependency> | |
<groupId>org.junit.jupiter</groupId> | |
<artifactId>junit-jupiter-api</artifactId> | |
<version>${junit.jupiter.version}</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>${junit.version}</version> | |
<scope>test</scope> | |
</dependency> | |
<!-- Only required to run tests in an IDE that bundles an older version --> | |
<dependency> | |
<groupId>org.junit.platform</groupId> | |
<artifactId>junit-platform-launcher</artifactId> | |
<version>${junit.platform.version}</version> | |
<scope>test</scope> | |
</dependency> | |
<!-- Only required to run tests in an IDE that bundles an older version --> | |
<dependency> | |
<groupId>org.junit.jupiter</groupId> | |
<artifactId>junit-jupiter-engine</artifactId> | |
<version>${junit.jupiter.version}</version> | |
<scope>test</scope> | |
</dependency> | |
<!-- Only required to run tests in an IDE that bundles an older version --> | |
<dependency> | |
<groupId>org.junit.vintage</groupId> | |
<artifactId>junit-vintage-engine</artifactId> | |
<version>${junit.vintage.version}</version> | |
<scope>test</scope> | |
</dependency> | |
<!-- To avoid compiler warnings about @API annotations in JUnit code --> | |
<dependency> | |
<groupId>org.apiguardian</groupId> | |
<artifactId>apiguardian-api</artifactId> | |
<version>1.0.0</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.junit.jupiter</groupId> | |
<artifactId>junit-jupiter-params</artifactId> | |
<version>${junit.jupiter.version}</version> | |
</dependency> | |
</dependencies> | |
</project> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment