Skip to content

Commit c268e98

Browse files
authored
Merge pull request #24 from micronaut-projects/cc/add-implicit-dependency
Add implicit dependency from gradle to platform
2 parents fc812dc + 6fa4102 commit c268e98

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

buildSrc/src/main/kotlin/io/micronaut/build/ProjectGraphBuilder.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,11 @@ abstract class ProjectGraphBuilder : DefaultTask() {
292292
allDependencies.split(",").forEach { dependency ->
293293
dependencies.add(dependency.toProjectName())
294294
}
295+
if (name == "gradle") {
296+
// Add an implicit dependency to platform, which is not captured by the tool
297+
// because it's added at runtime only by the plugin
298+
dependencies.add("platform")
299+
}
295300
}
296301
if (projectToMetadata.containsKey(name)) {
297302
throw IllegalStateException("Duplicate project name: $name, also found in $dependencyFile")

0 commit comments

Comments
 (0)