15
15
*/
16
16
package org .codehaus .mojo .buildplan ;
17
17
18
- import com .google .common .base .Strings ;
19
- import com .google .common .collect .LinkedListMultimap ;
20
- import com .google .common .collect .Multimap ;
18
+ import static org .codehaus .mojo .buildplan .util .Objects .firstNonNull ;
19
+ import static org .codehaus .plexus .util .StringUtils .isEmpty ;
20
+
21
+ import java .util .Collections ;
22
+ import java .util .List ;
21
23
import org .apache .maven .lifecycle .DefaultLifecycles ;
22
24
import org .apache .maven .lifecycle .Lifecycle ;
23
25
import org .apache .maven .plugin .MojoExecution ;
26
+ import org .codehaus .mojo .buildplan .util .LinkedMultimap ;
27
+ import org .codehaus .mojo .buildplan .util .Multimap ;
24
28
import org .codehaus .plexus .logging .console .ConsoleLogger ;
25
29
26
- import java .util .Collections ;
27
- import java .util .List ;
28
-
29
- import static com .google .common .base .Objects .firstNonNull ;
30
-
31
30
public class Groups {
32
31
33
32
public static class ByPlugin {
@@ -37,8 +36,8 @@ public static Multimap<String, MojoExecution> of(List<MojoExecution> executions)
37
36
}
38
37
39
38
public static Multimap <String ,MojoExecution > of (List <MojoExecution > executions , String artifactIdFilter ) {
40
- Multimap <String , MojoExecution > result = LinkedListMultimap . create ();
41
- boolean notFiltering = Strings . isNullOrEmpty (artifactIdFilter );
39
+ Multimap <String , MojoExecution > result = new LinkedMultimap <> ();
40
+ boolean notFiltering = isEmpty (artifactIdFilter );
42
41
for (MojoExecution execution : executions ) {
43
42
if (notFiltering || execution .getArtifactId ().equalsIgnoreCase (artifactIdFilter )) {
44
43
result .put (execution .getArtifactId (), execution );
@@ -59,8 +58,8 @@ public static Multimap<String, MojoExecution> of(List<MojoExecution> executions,
59
58
}
60
59
61
60
public static Multimap <String , MojoExecution > of (List <MojoExecution > executions , Options options ) {
62
- Multimap <String , MojoExecution > result = LinkedListMultimap . create ();
63
- boolean notFiltering = Strings . isNullOrEmpty (options .phase );
61
+ Multimap <String , MojoExecution > result = new LinkedMultimap <> ();
62
+ boolean notFiltering = isEmpty (options .phase );
64
63
for (MojoExecution execution : executions ) {
65
64
String phase = firstNonNull (execution .getLifecyclePhase (), "<no phase>" );
66
65
if (options .showingAllPhases ) {
0 commit comments