Commit 11b5e86f authored by Andy Wilkinson's avatar Andy Wilkinson

Deprecate BootJar#getConfigurations

Fixes gh-23527
parent c4a5a347
...@@ -21,6 +21,7 @@ import java.util.Collections; ...@@ -21,6 +21,7 @@ import java.util.Collections;
import java.util.concurrent.Callable; import java.util.concurrent.Callable;
import org.gradle.api.Action; import org.gradle.api.Action;
import org.gradle.api.Project;
import org.gradle.api.artifacts.Configuration; import org.gradle.api.artifacts.Configuration;
import org.gradle.api.file.CopySpec; import org.gradle.api.file.CopySpec;
import org.gradle.api.file.FileCollection; import org.gradle.api.file.FileCollection;
...@@ -117,7 +118,14 @@ public class BootJar extends Jar implements BootArchive { ...@@ -117,7 +118,14 @@ public class BootJar extends Jar implements BootArchive {
return this.support.createCopyAction(this); return this.support.createCopyAction(this);
} }
/**
* Returns the {@link Configuration Configurations} of the project associated with
* this task.
* @return the configurations
* @deprecated since 2.3.5 in favor of {@link Project#getConfigurations}
*/
@Internal @Internal
@Deprecated
protected Iterable<Configuration> getConfigurations() { protected Iterable<Configuration> getConfigurations() {
return getProject().getConfigurations(); return getProject().getConfigurations();
} }
......
...@@ -347,6 +347,7 @@ class BootJarTests extends AbstractBootArchiveTests<TestBootJar> { ...@@ -347,6 +347,7 @@ class BootJarTests extends AbstractBootArchiveTests<TestBootJar> {
private Iterable<Configuration> configurations = Collections.emptySet(); private Iterable<Configuration> configurations = Collections.emptySet();
@Override @Override
@SuppressWarnings("deprecation")
protected Iterable<Configuration> getConfigurations() { protected Iterable<Configuration> getConfigurations() {
return this.configurations; return this.configurations;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment