[GRADLE-120] Remove Junit jar from distribution bundle Created: 17/Jun/08  Updated: 04/Jan/13  Resolved: 09/Nov/11

Status: Resolved
Project: Gradle
Affects Version/s: 0.2
Fix Version/s: None

Type: Improvement
Reporter: Hans Dockter Assignee: Unassigned
Resolution: Won't Fix Votes: 0


 Comments   
Comment by Jon Cox [ 23/Jan/09 ]

Could you give the motivation for wanting to remove Junit from the bundle?

It's nice that the Gradle distro is easy to install & fairly self-contained.
If the goal is to avoid hijacking someone's own version of junit, could
the same end be achieved using a classloader hierarchy
(similar to how Tomcat does it)?

Comment by Hans Dockter [ 08/Feb/09 ]

The user's have to specify junit anyway in there classpath to make their build work. Then we have an additional junit version bundled with Gradle to be used by the Ant junit-runner. Due to Tom Eyckmans refactoring of the test tasks, we will get rid of the ant junit runner anyway soon (and then we don't need to ship junit with Gradle).

Comment by Adam Murdoch [ 24/Mar/10 ]

Should also remove the testng jar from the distribution, for the same reasons.

Comment by Adam Murdoch [ 09/Nov/11 ]

We need this jar present when the build uses junit 3 or an early version of junit 4, as the jar adds some additional stuff that the test runner uses.

Generated at Wed Jun 30 11:22:22 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.