[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Transition from junit to junit4



On Mon, May 28, 2012 at 2:34 AM, Ludovic Claude
<ludovic.claude@laposte.net> wrote:
> That's quite easy. If the package uses maven-debian-helper or
> maven-repo-helper, then you need to use the following rule in
> debian/maven.rules to use unconditionally Junit 4:
>
> junit junit jar s/.*/4.x/ * *
>
> Change the dependency from junit to junit4 in debian/control, and it
> should work!

My Debian machine went down yesterday because of some sort of file
system corruption. So I could not manage to create a wiki page listing
all packages.

For now I have created list against Ubuntu Quantal sources. This
should be at least 90% similar to the list you will get in Debian
Wheezy installation.
http://people.ubuntu.com/~onkarshinde/junit_build_depends.txt

For packages that use ant as build system you will simply need to
change junit build dep to junit4 and update build classpath in
d/rules. You may need to change some build properties passed to ant in
some cases.

Ludovic has already explained how to modify maven based packages.

Please note that this is not an official transition. As I have
specified work on this only if you are making other important changes
to package (similar to how we removed jre dependencies from library
packages). Feel free to keep this change if you face any issues.

Cheers,
Onkar
-- 
Passion - Some people climb mountains - others write Free software.
Don't ask why - the reason is the same.


Reply to: