Skip to content

Commit

Permalink
Merge pull request #24 from micronaut-projects/cc/add-implicit-depend…
Browse files Browse the repository at this point in the history
…ency

Add implicit dependency from gradle to platform
  • Loading branch information
melix authored Apr 11, 2023
2 parents fc812dc + 6fa4102 commit c268e98
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,11 @@ abstract class ProjectGraphBuilder : DefaultTask() {
allDependencies.split(",").forEach { dependency ->
dependencies.add(dependency.toProjectName())
}
if (name == "gradle") {
// Add an implicit dependency to platform, which is not captured by the tool
// because it's added at runtime only by the plugin
dependencies.add("platform")
}
}
if (projectToMetadata.containsKey(name)) {
throw IllegalStateException("Duplicate project name: $name, also found in $dependencyFile")
Expand Down

0 comments on commit c268e98

Please sign in to comment.