When running a project that uses modCompileOnly
dependencies, ./gradlew runClient
correctly does not include those dependencies at runtime. Using the run configurations generated by ./gradlew vscode
however will include those dependencies when running.
For an example, my mod Custom Fog has a compile-only dependency on Sodium, which shows up at runtime only when using the VSCode run profile.