Skip to content

Commit

Permalink
Query models with recommended API
Browse files Browse the repository at this point in the history
This fixes the deprecation warning reported at gradle/gradle#17039.
  • Loading branch information
donat committed Sep 21, 2021
1 parent 48fe12b commit 0f318fd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ private void collectRootModels(BuildController controller, GradleBuild build, Ma
}

if (this.parameter != null) {
models.put(buildPath, controller.getModel(build.getRootProject(), this.modelType, this.parameterType, this.parameter));
models.put(buildPath, controller.getModel(build, this.modelType, this.parameterType, this.parameter));
} else {
models.put(buildPath, controller.getModel(build.getRootProject(), this.modelType));
models.put(buildPath, controller.getModel(build, this.modelType));

}

Expand Down

0 comments on commit 0f318fd

Please sign in to comment.