Skip to content
Commits on Source (3)
carrotsearch-randomizedtesting (2.1.17-4) unstable; urgency=medium
* Team upload.
* Fixed the compatibility of the junit4-ant module with Java 11
* Added the missing dependencies required by junit4-ant
-- Emmanuel Bourg <ebourg@apache.org> Fri, 20 Sep 2019 10:45:12 +0200
carrotsearch-randomizedtesting (2.1.17-3) unstable; urgency=medium
* Team upload.
......
......@@ -8,7 +8,8 @@ Build-Depends:
debhelper (>= 11),
default-jdk,
junit4,
libasm-java (>= 5.0),
libasm-java (>= 7.0),
libcommons-io-java,
libdom4j-java,
libgoogle-gson-java,
libguava-java,
......@@ -26,7 +27,7 @@ Homepage: http://labs.carrotsearch.com/randomizedtesting.html
Package: libcarrotsearch-randomizedtesting-java
Architecture: all
Depends: ${misc:Depends}, ${maven:Depends}
Depends: ${misc:Depends}, ${maven:Depends}, libcommons-io-java, libguava-java
Recommends: ${maven:OptionalDepends}
Description: Randomized testing infrastructure for JUnit, Ant and Maven
Inspired by the Apache Lucene project's infrastructure, this project brings
......
Description: Fixes the compatibility with Java 11
Origin: backport, https://github.com/randomizedtesting/randomizedtesting/commit/e8839732
--- a/junit4-ant/src/main/java/com/carrotsearch/ant/tasks/junit4/JUnit4.java
+++ b/junit4-ant/src/main/java/com/carrotsearch/ant/tasks/junit4/JUnit4.java
@@ -1712,7 +1712,7 @@
final String REPLICATE_CLASS = "com.carrotsearch.randomizedtesting.annotations.ReplicateOnEachVm";
final TestClass testClass = new TestClass();
ClassReader reader = new ClassReader(is);
- ClassVisitor annotationVisitor = new ClassVisitor(Opcodes.ASM5) {
+ ClassVisitor annotationVisitor = new ClassVisitor(Opcodes.ASM7) {
@Override
public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
String className = Type.getType(desc).getClassName();
Description: Remove the 'provided' scope to ensure the package depends on the right dependencies.
This is necessary because proguard is disabled and the dependencies aren't embedded in a single jar.
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: not-needed
--- a/junit4-ant/pom.xml
+++ b/junit4-ant/pom.xml
@@ -22,7 +22,6 @@
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-junit</artifactId>
- <scope>provided</scope>
</dependency>
<!-- Required at runtime -->
@@ -31,7 +30,6 @@
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<type>jar</type>
- <scope>provided</scope>
</dependency>
<!-- Embedded into standalone JAR. -->
@@ -39,7 +37,6 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
- <scope>provided</scope>
<exclusions>
<exclusion>
<artifactId>jsr305</artifactId>
@@ -51,25 +48,21 @@
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
- <scope>provided</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
- <scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
- <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.simpleframework</groupId>
<artifactId>simple-xml</artifactId>
- <scope>provided</scope>
</dependency>
<dependency>
0001-remove-hamcrest-core-exclusion.patch
0002-remove-submodules-and-proguard-related-stuff.-Won-t-.patch
0003-java11-compatibility.patch
0004-fix-dependencies.patch