How to use bundled Oshi library

Is it possible to use the bundled Oshi library (github.oshi.core, v6) in a plugin? I can’t remind how to do that, sry. For now I’m bundling my own version of Oshi, which adds ~900KB to my plugin archive.
If I want to use the bundled version of Oshi, I can declare it as a compile dependency (compileOnly("com.github.oshi:oshi-core:6.4.4")) but I can’t access it at runtime (no class found blablabla for oshi.* classes). I probably need to declare a dependency in my plugin.xml. I already checked Modules Available in All Products.

Thx

Libraries available in the IntelliJ Platform aren’t exposed for third-party usage (unfortunately), so you can’t load them as bundled plugins or modules.

However, below is the list of modules that rely on it:

I believe you can set a dependency on any of them to get OSHI loaded both for compilation and runtime.
I can’t guarantee this works or won’t change, though.

Sometimes we do expose them as modules in plugin v2 model, like intellij.libraries.ktor.client, but this one github.oshi.core is not exposed yet.

Thx a lot for the explanations.
I will continue to bundle the Oshi library. I will prioritize stability.

I’d like to add that Oshi is not lightweight. IDEA itself uses it only in tests.