use of org.gradle.tooling.internal.consumer.converters.GradleBuildConverter in project gradle by gradle.
the class GradleBuildAdapterProducer method produceModel.
public <T> T produceModel(Class<T> type, ConsumerOperationParameters operationParameters) {
if (type.equals(GradleBuild.class)) {
GradleProject gradleProject = delegate.produceModel(GradleProject.class, operationParameters);
final DefaultGradleBuild convert = new GradleBuildConverter().convert(gradleProject);
return mappingProvider.applyCompatibilityMapping(adapter.builder(type), operationParameters).build(convert);
}
return delegate.produceModel(type, operationParameters);
}
Aggregations