You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (Jira)" <ji...@apache.org> on 2020/12/30 21:36:00 UTC

[jira] [Closed] (MARCHETYPES-70) Quickstart support for junit 5 and java 9+

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

Herve Boutemy closed MARCHETYPES-70.
------------------------------------
    Fix Version/s: 1.5
         Assignee: Enrico Olivelli
       Resolution: Fixed

PR merged in https://github.com/apache/maven-archetypes/commit/f7627910d41722ee56be2e3b96d57958e84a0750

> 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
>            Assignee: Enrico Olivelli
>            Priority: Minor
>             Fix For: 1.5
>
>
> 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)