bump(version): bump classgraph version, add early package filter (#10207)

This commit is contained in:
david-leifker 2024-04-04 15:24:17 -05:00 committed by GitHub
parent eb3ab37e66
commit 7eb59b4857
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -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 {

View File

@ -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()