@@ -1480,18 +1480,19 @@ public <T> NamedDomainObjectContainer<T> container(Class<T> type) {
1480
1480
@ Override
1481
1481
@ Deprecated
1482
1482
public <T > NamedDomainObjectContainer <T > container (Class <T > type , NamedDomainObjectFactory <T > factory ) {
1483
- DeprecationLogger .deprecateMethod (Project .class , "container(Class)" ).
1484
- replaceWith ("objects.domainObjectContainer(Class, NamedDomainObjectFactory)" ).
1485
- willBeRemovedInGradle10 ().
1486
- withUpgradeGuideSection (9 , "project_container_methods" ).
1487
- nagUser ();
1483
+ // KGP uses this method to create a container for the Kotlin DSL
1484
+ // DeprecationLogger.deprecateMethod(Project.class, "container(Class, NamedDomainObjectFactory)").
1485
+ // replaceWith("objects.domainObjectContainer(Class, NamedDomainObjectFactory)").
1486
+ // willBeRemovedInGradle10().
1487
+ // withUpgradeGuideSection(9, "project_container_methods").
1488
+ // nagUser();
1488
1489
return getServices ().get (DomainObjectCollectionFactory .class ).newNamedDomainObjectContainer (type , factory );
1489
1490
}
1490
1491
1491
1492
@ Override
1492
1493
@ Deprecated
1493
1494
public <T > NamedDomainObjectContainer <T > container (Class <T > type , Closure factoryClosure ) {
1494
- DeprecationLogger .deprecateMethod (Project .class , "container(Class)" ).
1495
+ DeprecationLogger .deprecateMethod (Project .class , "container(Class, Closure )" ).
1495
1496
replaceWith ("objects.domainObjectContainer(Class, NamedDomainObjectFactory)" ).
1496
1497
willBeRemovedInGradle10 ().
1497
1498
withUpgradeGuideSection (9 , "project_container_methods" ).
0 commit comments