Version 1.7
This version contains a single major upgrade: the switch from JUnit version 4.x to JUnit version 5.x. The JAR files that are downloaded are completely different from previous versions (both in terms of filenames and number of files).
Currently, the script's test
target still runs the legacy junit
Ant task, which in turn uses the JUnit vintage engine to run tests. This engine expects tests to contain annotations for JUnit 4 (i.e. @org.junit.Test
). Tests that use JUnit 5 annotations currently cause errors and should not be used. However, this ensures backwards compatibility with existing JUnit 4.x test suites, so nothing needs to be changed to existing projects upgrading from a previous version of AntRun.
JUnit 5 only supports Java 8 onwards. Therefore, the target
parameter of the javac
task has been increased from 1.6 to 1.8. Similarly, the download-rt6
task has been renamed download-rt8
, and now installs the bootstrap classes of version 8 of the JRE. As a consequence, AntRun can no longer be used to cross-compile to versions of Java earlier than 8.