DependencyGraphBuilder debug question: What's the difference between default and runtime

not-a-bug

(Ryan Burgess) #1

Can someone indicate what the difference is between default and runtime below: com.ze:utility:4.6.0(default) vs com.ze:utility:4.6.0(runtime) ? It seems like below the owasp dependency is excluded in the default scope, but later it’s included in the runtime scope.

08:51:20.955 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.conflicts.DefaultConflictHandler] Selected com.ze:utility:4.6.0 from conflicting modules [com.ze:utility:4.6.0, com.ze:utility:3.2.2].
08:51:20.955 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting configuration com.ze:utility:4.6.0(default).
08:51:20.955 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] org.owasp.esapi:esapi is excluded from com.ze:utility:4.6.0(default).
08:51:20.955 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting dependency com.ze:utility:4.6.0(default) -> dependency: org.slf4j:slf4j-api:1.6.1, scope: Compile, optional: false
08:51:20.956 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Found new conflicting module version org.slf4j:slf4j-api:1.6.1
08:51:20.956 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting configuration com.ze:utility:4.6.0(runtime).
08:51:20.956 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting dependency com.ze:utility:4.6.0(runtime) -> dependency: org.slf4j:slf4j-api:1.6.1, scope: Compile, optional: false
08:51:20.956 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting dependency com.ze:utility:4.6.0(runtime) -> dependency: org.owasp.esapi:esapi:2.1.0, scope: Compile, optional: false
08:51:20.956 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Selecting new module version org.owasp.esapi:esapi:2.1.0