@@ -447,57 +447,6 @@ public Configuration versionsFromConsistentResolution(Collection<String> version
447447 return mainRuntimeClasspath ;
448448 }
449449
450- /**
451- * @deprecated use the 'org.gradlex.jvm-dependency-conflict-resolution' plugin instead.
452- */
453- @ Deprecated
454- public Configuration versionsFromPlatformAndConsistentResolution (String platformProject , String ... versionsProvidingProjects ) {
455- return versionsFromPlatformAndConsistentResolution (platformProject , Arrays .asList (versionsProvidingProjects ));
456- }
457-
458- /**
459- * @deprecated use the 'org.gradlex.jvm-dependency-conflict-resolution' plugin instead.
460- */
461- @ Deprecated
462- public Configuration versionsFromPlatformAndConsistentResolution (String platformProject , Collection <String > versionsProvidingProjects ) {
463- boolean platformInJavaProject = versionsProvidingProjects .contains (platformProject );
464-
465- maybeCreateInternalConfiguration ().withDependencies (d -> {
466- Dependency platformDependency = getDependencies ().platform (createDependency (platformProject ));
467- if (platformInJavaProject ) {
468- if (platformProject .startsWith (":" )) {
469- String capability = ((ProjectDependency ) platformDependency ).getDependencyProject ().getGroup () + platformProject + "-platform" ;
470- ((ProjectDependency ) platformDependency ).capabilities (c -> c .requireCapability (capability ));
471- } else if (platformDependency instanceof ModuleDependency ) {
472- String capability = platformProject + "-platform" ;
473- ((ModuleDependency ) platformDependency ).capabilities (c -> c .requireCapability (capability ));
474- }
475- }
476- d .add (platformDependency );
477- });
478-
479- getSourceSets ().configureEach (sourceSet -> {
480- ConfigurationContainer configurations = getConfigurations ();
481- Configuration internal = configurations .getByName (INTERNAL );
482- configurations .getByName (sourceSet .getRuntimeClasspathConfigurationName ()).extendsFrom (internal );
483- configurations .getByName (sourceSet .getCompileClasspathConfigurationName ()).extendsFrom (internal );
484- configurations .getByName (sourceSet .getAnnotationProcessorConfigurationName ()).extendsFrom (internal );
485- });
486-
487- return versionsFromConsistentResolution (versionsProvidingProjects );
488- }
489-
490- private Configuration maybeCreateInternalConfiguration () {
491- Configuration internal = getConfigurations ().findByName (INTERNAL );
492- if (internal != null ) {
493- return internal ;
494- }
495- return getConfigurations ().create (INTERNAL , i -> {
496- i .setCanBeResolved (false );
497- i .setCanBeConsumed (false );
498- });
499- }
500-
501450 private Dependency createDependency (String project ) {
502451 boolean isProjectInBuild = project .startsWith (":" );
503452 return getDependencies ().create (isProjectInBuild
0 commit comments