mirror of
https://github.com/corda/corda.git
synced 2025-06-01 15:10:54 +00:00
CORDA-2333: Bumped ClassGraph version to latest (#5214)
This commit is contained in:
parent
c32e3a9e26
commit
8480d49e7e
@ -98,7 +98,7 @@ buildscript {
|
|||||||
ext.commons_cli_version = '1.4'
|
ext.commons_cli_version = '1.4'
|
||||||
ext.protonj_version = '0.33.0' // Overide Artemis version
|
ext.protonj_version = '0.33.0' // Overide Artemis version
|
||||||
ext.snappy_version = '0.4'
|
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.jcabi_manifests_version = '1.1'
|
||||||
ext.picocli_version = '3.8.0'
|
ext.picocli_version = '3.8.0'
|
||||||
ext.commons_io_version = '2.6'
|
ext.commons_io_version = '2.6'
|
||||||
|
@ -54,15 +54,15 @@ data class TestCordappImpl(val scanPackage: String, override val config: Map<Str
|
|||||||
|
|
||||||
private fun findRootPaths(scanPackage: String): Set<Path> {
|
private fun findRootPaths(scanPackage: String): Set<Path> {
|
||||||
return packageToRootPaths.computeIfAbsent(scanPackage) {
|
return packageToRootPaths.computeIfAbsent(scanPackage) {
|
||||||
ClassGraph()
|
val classGraph = ClassGraph().whitelistPackages(scanPackage)
|
||||||
.whitelistPackages(scanPackage)
|
classGraph.pooledScan().use {
|
||||||
.pooledScan()
|
it.allResources
|
||||||
.use { it.allResources }
|
.asSequence()
|
||||||
.asSequence()
|
.map { it.classpathElementFile.toPath() }
|
||||||
.map { it.classpathElementFile.toPath() }
|
.filterNot { it.toString().endsWith("-tests.jar") }
|
||||||
.filterNot { it.toString().endsWith("-tests.jar") }
|
.map { if (it.toString().endsWith(".jar")) it else findProjectRoot(it) }
|
||||||
.map { if (it.toString().endsWith(".jar")) it else findProjectRoot(it) }
|
.toSet()
|
||||||
.toSet()
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user