|
138 | 138 | depend on JUnit 4.11 (<literal>junit:junit</literal>), TestNG 6.5.2 |
139 | 139 | (<literal>org.testng:testng</literal>), and Hamcrest Core 1.3 |
140 | 140 | (<literal>org.hamcrest:hamcrest-core</literal>). Each of these |
141 | | - dependencies is declared as an <emphasis>optional</emphasis> dependency |
142 | | - in the Maven POM. Furthermore, it is important to note that the JUnit |
143 | | - team has stopped inlining Hamcrest Core within the |
144 | | - <literal>junit:junit</literal> Maven artifact as of JUnit 4.11. Thus, if |
145 | | - your existing JUnit-based tests make use of Hamcrest matchers that were |
146 | | - previously available directly within the <literal>junit:junit</literal> |
147 | | - JAR, you will now need to explicitly declare a dependency on |
148 | | - <literal>org.hamcrest:hamcrest-core</literal>, |
149 | | - <literal>org.hamcrest:hamcrest-library</literal>, or |
150 | | - <literal>org.hamcrest:hamcrest-all</literal>.</para> |
| 141 | + dependencies is declared as an <emphasis>optional</emphasis> dependency in |
| 142 | + the Maven POM. Furthermore, it is important to note that the JUnit team |
| 143 | + has stopped inlining Hamcrest Core within the |
| 144 | + <literal>junit:junit</literal> Maven artifact as of JUnit 4.11. Hamcrest |
| 145 | + Core is now a <emphasis>required</emphasis> transitive dependency of |
| 146 | + <literal>junit</literal>, and users may therefore need to remove any |
| 147 | + exclusions on <literal>hamcrest-core</literal> that they had previously |
| 148 | + configured for their build.</para> |
151 | 149 | </section> |
152 | 150 |
|
153 | 151 | <section xml:id="migration-3.2-changes"> |
|
0 commit comments