mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-26 20:09:02 +00:00
Merge branch '3.5.x' into 4.0.x
This commit is contained in:
-17
@@ -20,7 +20,6 @@ import java.io.File;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
@@ -196,20 +195,4 @@ public abstract class AbstractDependencyFilterMojo extends AbstractMojo {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* {@link ArtifactFilter} that only include runtime scopes.
|
||||
*/
|
||||
protected static class RuntimeArtifactFilter implements ArtifactFilter {
|
||||
|
||||
private static final Collection<String> SCOPES = List.of(Artifact.SCOPE_COMPILE,
|
||||
Artifact.SCOPE_COMPILE_PLUS_RUNTIME, Artifact.SCOPE_RUNTIME);
|
||||
|
||||
@Override
|
||||
public boolean include(Artifact artifact) {
|
||||
String scope = artifact.getScope();
|
||||
return !artifact.isOptional() && (scope == null || SCOPES.contains(scope));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user