Skip to content

Commit

Permalink
Deprecate 'versionsFromConsistentResolution'
Browse files Browse the repository at this point in the history
  • Loading branch information
jjohannes committed Jul 16, 2024
1 parent b9a75bc commit b182130
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,10 @@ public Provider<String> moduleName(Provider<String> ga) {
});
}

/**
* @deprecated use the 'org.gradlex.jvm-dependency-conflict-resolution' plugin instead.
*/
@Deprecated
public Configuration versionsFromConsistentResolution(String... versionsProvidingProjects) {
return versionsFromConsistentResolution(Arrays.asList(versionsProvidingProjects));
}
Expand All @@ -378,7 +382,10 @@ public Configuration versionsFromConsistentResolution(String... versionsProvidin
* Use consistent resolution to manage versions consistently through in the main application project(s).
*
* @param versionsProvidingProjects projects which runtime classpaths are the runtime classpaths of the applications/services being built.
*
* @deprecated use the 'org.gradlex.jvm-dependency-conflict-resolution' plugin instead.
*/
@Deprecated
public Configuration versionsFromConsistentResolution(Collection<String> versionsProvidingProjects) {
ObjectFactory objects = getObjects();
Configuration mainRuntimeClasspath = getConfigurations().create("mainRuntimeClasspath", c -> {
Expand All @@ -401,10 +408,18 @@ public Configuration versionsFromConsistentResolution(Collection<String> version
return mainRuntimeClasspath;
}

/**
* @deprecated use the 'org.gradlex.jvm-dependency-conflict-resolution' plugin instead.
*/
@Deprecated
public Configuration versionsFromPlatformAndConsistentResolution(String platformProject, String... versionsProvidingProjects) {
return versionsFromPlatformAndConsistentResolution(platformProject, Arrays.asList(versionsProvidingProjects));
}

/**
* @deprecated use the 'org.gradlex.jvm-dependency-conflict-resolution' plugin instead.
*/
@Deprecated
public Configuration versionsFromPlatformAndConsistentResolution(String platformProject, Collection<String> versionsProvidingProjects) {
boolean platformInJavaProject = versionsProvidingProjects.contains(platformProject);

Expand Down

0 comments on commit b182130

Please sign in to comment.