Skip to content

Commit

Permalink
[build] Bump reflections to 0.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowdalic committed Nov 10, 2024
1 parent f18d0df commit d3cbe8c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ ext {
bouncyCastleVersion = '1.73'
guavaVersion = '33.3.1-jre'
mockitoVersion = '5.14.2'
orgReflectionsVersion = '0.9.11'
orgReflectionsVersion = '0.10.2'

if (project.hasProperty("useSonatype")) {
useSonatype = project.getProperty("useSonatype").toBoolean()
Expand Down
2 changes: 0 additions & 2 deletions smack-integration-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ dependencies {
api project(':smack-resolver-dnsjava')
implementation project(':smack-websocket-java11')
implementation "com.google.guava:guava:${guavaVersion}"
// Do not upgrade to a higher reflections version until
// https://github.com/ronmamo/reflections/issues/273 is fixed.
implementation "org.reflections:reflections:${orgReflectionsVersion}"
api 'eu.geekplace.javapinning:java-pinning-java7:1.1.0-alpha1'
implementation group: 'commons-io', name: 'commons-io', version: "$commonsIoVersion"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@
import org.igniterealtime.smack.inttest.debugger.SinttestDebugger;

import org.reflections.Reflections;
import org.reflections.scanners.MethodAnnotationsScanner;
import org.reflections.scanners.MethodParameterScanner;
import org.reflections.scanners.SubTypesScanner;
import org.reflections.scanners.TypeAnnotationsScanner;
import org.reflections.scanners.Scanners;

public class SmackIntegrationTestFramework {

Expand Down Expand Up @@ -238,8 +235,8 @@ public synchronized TestRunResult run()
else {
testPackages = config.testPackages.toArray(new String[config.testPackages.size()]);
}
Reflections reflections = new Reflections(testPackages, new SubTypesScanner(),
new TypeAnnotationsScanner(), new MethodAnnotationsScanner(), new MethodParameterScanner());
Reflections reflections = new Reflections(testPackages, Scanners.SubTypes,
Scanners.TypesAnnotated, Scanners.MethodsAnnotated, Scanners.MethodsParameter);
Set<Class<? extends AbstractSmackIntegrationTest>> inttestClasses = reflections.getSubTypesOf(AbstractSmackIntegrationTest.class);
Set<Class<? extends AbstractSmackLowLevelIntegrationTest>> lowLevelInttestClasses = reflections.getSubTypesOf(AbstractSmackLowLevelIntegrationTest.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import org.junit.jupiter.api.Test;
import org.reflections.Reflections;
import org.reflections.scanners.SubTypesScanner;
import org.reflections.scanners.Scanners;

public class ExtensionElementQNameDeclaredTest {

Expand All @@ -38,7 +38,7 @@ public void qnameOrElementNamespaceDeclaredTest() {
"org.jivesoftware.smack",
"org.igniterealtime.smack",
};
Reflections reflections = new Reflections(smackPackages, new SubTypesScanner());
Reflections reflections = new Reflections(smackPackages, Scanners.SubTypes);
Set<Class<? extends ExtensionElement>> extensionElementClasses = reflections.getSubTypesOf(
ExtensionElement.class);

Expand Down

0 comments on commit d3cbe8c

Please sign in to comment.