Skip to content

Commit

Permalink
bump(version): bump classgraph version, add early package filter (#10207
Browse files Browse the repository at this point in the history
)
  • Loading branch information
david-leifker authored Apr 4, 2024
1 parent eb3ab37 commit 7eb59b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import javax.annotation.Nullable;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.ArrayUtils;

@Slf4j
public class PluginFactory {
Expand Down Expand Up @@ -68,6 +69,7 @@ public PluginFactory(
@Nullable PluginConfiguration pluginConfiguration, @Nonnull List<ClassLoader> classLoaders) {
this.classGraph =
new ClassGraph()
.acceptPackages(ArrayUtils.addAll(HOOK_PACKAGES, VALIDATOR_PACKAGES))
.enableRemoteJarScanning()
.enableExternalClasses()
.enableClassInfo()
Expand Down

0 comments on commit 7eb59b4

Please sign in to comment.