File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed
plugin/src/main/kotlin/org/gradle Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -194,9 +194,9 @@ abstract class DependencyExtractor :
194
194
configurationName : String
195
195
): DependencyScope {
196
196
if (configurationFilter.scopesAreConfigured()) {
197
- return if (configurationFilter.isRuntime(rootPath, configurationName)) RUNTIME else DEVELOPMENT
197
+ return if (configurationFilter.isRuntime(rootPath, configurationName)) Runtime else Development
198
198
}
199
- return UNKNOWN
199
+ return Unknown
200
200
}
201
201
202
202
private fun walkComponentDependencies (
Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ package org.gradle.dependencygraph.model
6
6
* Later development may extend this to a richer set of scopes.
7
7
*/
8
8
enum class DependencyScope {
9
- UNKNOWN , DEVELOPMENT , RUNTIME ;
9
+ Unknown , Development , Runtime ;
10
10
11
11
companion object {
12
12
fun getEffectiveScope (scopes : List <DependencyScope >): DependencyScope {
13
- if (scopes.contains(RUNTIME )) return RUNTIME
14
- if (scopes.contains(DEVELOPMENT )) return DEVELOPMENT
15
- return UNKNOWN
13
+ if (scopes.contains(Runtime )) return Runtime
14
+ if (scopes.contains(Development )) return Development
15
+ return Unknown
16
16
}
17
17
}
18
18
}
Original file line number Diff line number Diff line change @@ -40,14 +40,14 @@ class SimpleDependencyGraphRenderer : DependencyGraphRenderer {
40
40
outputDirectory : File ,
41
41
resolvedConfigurations : List <ResolvedConfiguration >
42
42
) {
43
- val outputFile = File (outputDirectory, " dependency-scopes .json" )
43
+ val outputFile = File (outputDirectory, " dependency-resolution .json" )
44
44
val dependencyList: MutableMap <String , MutableSet <SimpleDependencyResolution >> = mutableMapOf ()
45
45
for (config in resolvedConfigurations) {
46
46
for (dependency in config.allDependencies) {
47
47
if (dependency.isProject) continue
48
48
49
- val dependencyScopes = dependencyList.getOrPut(dependency.id) { mutableSetOf () }
50
- dependencyScopes .add(
49
+ val dependencyResolutions = dependencyList.getOrPut(dependency.id) { mutableSetOf () }
50
+ dependencyResolutions .add(
51
51
SimpleDependencyResolution (
52
52
config.rootOrigin.path,
53
53
config.configurationName,
Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ class GitHubRepositorySnapshotBuilder(
40
40
41
41
private fun determineGitHubScope (configuration : ResolvedConfiguration ): GitHubDependency .Scope ? {
42
42
return when (configuration.scope) {
43
- DependencyScope .DEVELOPMENT -> GitHubDependency .Scope .development
44
- DependencyScope .RUNTIME -> GitHubDependency .Scope .runtime
45
- DependencyScope .UNKNOWN -> null
43
+ DependencyScope .Development -> GitHubDependency .Scope .development
44
+ DependencyScope .Runtime -> GitHubDependency .Scope .runtime
45
+ DependencyScope .Unknown -> null
46
46
}
47
47
}
48
48
You can’t perform that action at this time.
0 commit comments