classgraph: When used in gradle plugin, it throws Unable to load class 'io.github.classgraph.ClassGraph'
Hi,
I’m using the ClassGraph library inside a custom gradle plugin: https://github.com/RoRoche/plantuml-gradle-plugin/tree/feature/using_classgraph
It’s OK during unit testing and while releasing into local Maven and used in another project.
But since it has been released to gradle plugin portal (https://plugins.gradle.org/plugin/com.github.roroche.plantuml), when using inside another project (https://github.com/RoRoche/eo-plantuml-builder), when running my buildClassDiagram
task, it throws
* What went wrong:
Execution failed for task ':buildClassDiagram'.
> Lio/github/classgraph/ClassGraph;
Any idea of what’s going wrong? Gradle plugin packaging?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (6 by maintainers)
That can be obtained with:
https://docs.gradle.org/current/userguide/java_plugin.html#sec:java_plugin_and_dependency_management https://docs.gradle.org/current/dsl/org.gradle.api.Project.html#N14F9E https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.Configuration.html