How to add "scope" dependencies to classpath for Gradle projects?

Answered

For Maven projects, IDEA provides an option "Adding dependencies with Provided scope to classpath", so we can run applications in IDEA with `Provided` scope easily, e.g., `flink-streaming-java`.

But, for the counterpart in Gradle projects, `compily-only`, how can I enable the similar option?

0
2 comments

Hello,

What run configuration type do you use?

0

@... It seems that I have to use another plugin "com.github.johnrengelman.shadow" and specify dependencies with "shadow" scope, which can not only make a uber jar, but also enable me to run it in IDEA directly. https://github.com/honlyc/flink-learning/blob/master/build.gradle

0

Please sign in to leave a comment.