-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make gradle dependency configuration errors into its own data table.
- Loading branch information
Showing
3 changed files
with
50 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...ain/java/org/openrewrite/java/dependencies/table/GradleDependencyConfigurationErrors.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package org.openrewrite.java.dependencies.table; | ||
|
||
import lombok.Value; | ||
import org.openrewrite.Column; | ||
import org.openrewrite.DataTable; | ||
import org.openrewrite.Recipe; | ||
|
||
public class GradleDependencyConfigurationErrors extends DataTable<GradleDependencyConfigurationErrors.Row> { | ||
|
||
|
||
public GradleDependencyConfigurationErrors(Recipe recipe) { | ||
super(recipe, "Gradle dependency configuration errors", | ||
"Records Gradle dependency configurations which failed to resolve during parsing. " + | ||
"Partial success/failure is common, a failure in this list does not mean that every dependency failed to resolve."); | ||
} | ||
|
||
@Value | ||
public static class Row { | ||
@Column(displayName = "Project path", | ||
description = "The path of the project which contains the dependency configuration.") | ||
String projectPath; | ||
|
||
@Column(displayName = "Configuration name", | ||
description = "The name of the dependency configuration which failed to resolve.") | ||
String configurationName; | ||
|
||
@Column(displayName = "Exception type", | ||
description = "The type of exception encountered when attempting to resolve the dependency configuration.") | ||
String exceptionType; | ||
|
||
@Column(displayName = "Error message", | ||
description = "The error message encountered when attempting to resolve the dependency configuration.") | ||
String exceptionMessage; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters