Skip to content

Instantly share code, notes, and snippets.

@artemptushkin
Last active October 29, 2020 19:45
Show Gist options
  • Save artemptushkin/7a113e293ff4953eae3bad2bb177160f to your computer and use it in GitHub Desktop.
Save artemptushkin/7a113e293ff4953eae3bad2bb177160f to your computer and use it in GitHub Desktop.
The cheat-sheet table for maven-gradle relations. Read more https://dev.to/art_ptushkin/gradle-maven-scopes-cheat-sheet-4i56
Direct dependency Transitive dependency
Gradle configurations Maven scope Requirements Artifact inclusion Compile classpath Runtime classpath Test compile classpath Test runtime classpath Compile classpath Runtime classpath
implementation runtime yes + + + + +
api compile plugins: id 'java-library' yes + + + + + +
compile compile yes + + + + + +
compileOnly - no +
runtimeOnly runtime yes + + +
providedCompile provided plugins: id 'war' no + + + +
providedRuntime provided plugins: id 'war' no + +
testImplementation test no + +
testCompile test no + +
testCompileOnly - no +
testRuntimeOnly - no +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment