diff --git a/build.gradle b/build.gradle index 320ffb5b84..9585d9a368 100644 --- a/build.gradle +++ b/build.gradle @@ -98,7 +98,7 @@ buildscript { ext.commons_cli_version = '1.4' ext.protonj_version = '0.33.0' // Overide Artemis version ext.snappy_version = '0.4' - ext.class_graph_version = '4.6.12' + ext.class_graph_version = '4.8.38' ext.jcabi_manifests_version = '1.1' ext.picocli_version = '3.8.0' ext.commons_io_version = '2.6' diff --git a/testing/node-driver/src/main/kotlin/net/corda/testing/node/internal/TestCordappImpl.kt b/testing/node-driver/src/main/kotlin/net/corda/testing/node/internal/TestCordappImpl.kt index 8c924cd047..6129a0f127 100644 --- a/testing/node-driver/src/main/kotlin/net/corda/testing/node/internal/TestCordappImpl.kt +++ b/testing/node-driver/src/main/kotlin/net/corda/testing/node/internal/TestCordappImpl.kt @@ -54,15 +54,15 @@ data class TestCordappImpl(val scanPackage: String, override val config: Map { return packageToRootPaths.computeIfAbsent(scanPackage) { - ClassGraph() - .whitelistPackages(scanPackage) - .pooledScan() - .use { it.allResources } - .asSequence() - .map { it.classpathElementFile.toPath() } - .filterNot { it.toString().endsWith("-tests.jar") } - .map { if (it.toString().endsWith(".jar")) it else findProjectRoot(it) } - .toSet() + val classGraph = ClassGraph().whitelistPackages(scanPackage) + classGraph.pooledScan().use { + it.allResources + .asSequence() + .map { it.classpathElementFile.toPath() } + .filterNot { it.toString().endsWith("-tests.jar") } + .map { if (it.toString().endsWith(".jar")) it else findProjectRoot(it) } + .toSet() + } } }