[ 
https://issues.apache.org/jira/browse/MARCHETYPES-61?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17541094#comment-17541094
 ] 

Jurrian Fahner commented on MARCHETYPES-61:
-------------------------------------------

Archetype has been already updated in MARCHETYPES-70., but has not been 
released yet.
However the change was already a while ago.

So there is no need to have junit-api and junit engine (which is still part of 
the archetype), the following should be enough:
{code:xml}
<dependency>
    <groupId>org.junit.jupiter</groupId>
    <artifactId>junit-jupiter</artifactId>
    <version>5.8.2</version>
    <scope>test</scope>
</dependency> {code}
[~dt] if you want a challenge, you can create a PR to reflect the above 
change... ;)

> Update quickstart to use JUnit 5
> --------------------------------
>
>                 Key: MARCHETYPES-61
>                 URL: https://issues.apache.org/jira/browse/MARCHETYPES-61
>             Project: Maven Archetype Bundles
>          Issue Type: Improvement
>          Components: Maven Quickstart Archetype
>    Affects Versions: 1.3
>            Reporter: Dmitry Timofeev
>            Priority: Minor
>
> Update quickstart archetype to generate a project using JUnit 5, the next 
> version of the most popular testing framework.
> Currently one has to include _at least_ two dependencies on JUnit 5 artefacts 
> to enable surefire to run them: junit-jupiter-api and junit-jupiter-engine.
> Possible structure of dependencies:
> {code:java}
> <dependencyManagement>
>   <dependencies>
>     <dependency>
>       <groupId>org.junit</groupId>
>       <artifactId>junit-bom</artifactId>
>       <version>5.3.1</version>
>       <type>pom</type>
>       <scope>import</scope>
>     </dependency>
>   </dependencies>
> </dependencyManagement>
> <dependencies>
>   <dependency>
>     <groupId>org.junit.jupiter</groupId>
>     <artifactId>junit-jupiter-api</artifactId>
>     <scope>test</scope>
>   </dependency>
>   <dependency>
>     <groupId>org.junit.jupiter</groupId>
>     <artifactId>junit-jupiter-engine</artifactId>
>     <scope>test</scope>
>   </dependency>
>   <!-- Optionally: parameterized tests support -->
>   <dependency>
>     <groupId>org.junit.jupiter</groupId>
>     <artifactId>junit-jupiter-params</artifactId>
>     <scope>test</scope>
>   </dependency>
> </dependencies>{code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to