[ 
https://issues.apache.org/jira/browse/MARCHETYPES-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jurrian Fahner updated MARCHETYPES-70:
--------------------------------------
    Docs Text: Quickstart supports java 9+ and junit 5. To specify the java 
version and junit version set the properties javaCompilerVersion (default = 
1.7) and junitVersion (default = 4.13.1) respectively. 

> Quickstart support for junit 5 and java 9+
> ------------------------------------------
>
>                 Key: MARCHETYPES-70
>                 URL: https://issues.apache.org/jira/browse/MARCHETYPES-70
>             Project: Maven Archetype Bundles
>          Issue Type: Improvement
>          Components: Maven Quickstart Archetype
>    Affects Versions: 1.3, 1.4
>            Reporter: Jurrian Fahner
>            Priority: Minor
>
> Quickstart archetype is outdated due to the support for java versions below 9 
> and junit 4.
> The changes needs to be made backwards compatible in order to avoid breaking 
> changes for legacy projects.
> For the support of java 9+ the java version tag must change from: 
> {code:xml}
> <!-- example for java 8 and below -->
>  <maven.compiler.source>1.8</maven.compiler.source>
> <maven.compiler.target>1.8</maven.compiler.target>
> {code}
> to:
> {code:xml}
> <!-- example with java 11 -->
> <maven.compiler.release>11</maven.compiler.release>
> {code}
> For junit 5 support it is needed to add junit-jupiter-api and the vintage 
> plugin, to add support for large older projects (with old junit tests in it). 
> Example for dependencies for junit 5 it will look like:
> {code:xml}
>     <dependency>
>       <groupId>org.junit.jupiter</groupId>
>       <artifactId>junit-jupiter-api</artifactId>
>       <version>5.2.2</version>
>       <scope>test</scope>
>     </dependency>
>     <dependency>
>       <groupId>org.junit.jupiter</groupId>
>       <artifactId>junit-jupiter-engine</artifactId>
>       <version>5.2.2</version>
>       <scope>test</scope>
>     </dependency>
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to