mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-24 08:28:12 +00:00
bump(version): bump classgraph version, add early package filter (#10207)
This commit is contained in:
parent
eb3ab37e66
commit
7eb59b4857
@ -266,7 +266,7 @@ project.ext.externalDependency = [
|
||||
'jline':'jline:jline:1.4.1',
|
||||
'jetbrains':' org.jetbrains.kotlin:kotlin-stdlib:1.6.0',
|
||||
'annotationApi': 'javax.annotation:javax.annotation-api:1.3.2',
|
||||
'classGraph': 'io.github.classgraph:classgraph:4.8.165',
|
||||
'classGraph': 'io.github.classgraph:classgraph:4.8.168',
|
||||
]
|
||||
|
||||
allprojects {
|
||||
|
||||
@ -24,6 +24,7 @@ import javax.annotation.Nonnull;
|
||||
import javax.annotation.Nullable;
|
||||
import lombok.Getter;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
|
||||
@Slf4j
|
||||
public class PluginFactory {
|
||||
@ -68,6 +69,7 @@ public class PluginFactory {
|
||||
@Nullable PluginConfiguration pluginConfiguration, @Nonnull List<ClassLoader> classLoaders) {
|
||||
this.classGraph =
|
||||
new ClassGraph()
|
||||
.acceptPackages(ArrayUtils.addAll(HOOK_PACKAGES, VALIDATOR_PACKAGES))
|
||||
.enableRemoteJarScanning()
|
||||
.enableExternalClasses()
|
||||
.enableClassInfo()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user