Skip to content

Commit

Permalink
add main function
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeWang1127 committed Nov 29, 2023
1 parent 7c4ae40 commit 09f3a0e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.google.cloud;

import static com.google.common.base.Preconditions.checkArgument;

import com.google.cloud.tools.opensource.dependencies.Bom;
import com.google.cloud.tools.opensource.dependencies.MavenRepositoryException;
import java.nio.file.Paths;
Expand All @@ -10,6 +12,12 @@

public class UnmanagedDependencyCheck {

public static void main(String[] args)
throws MavenRepositoryException, ArtifactDescriptorException {
checkArgument(args.length == 2, "The length of the inputs should be 2");
System.out.println(getUnmanagedDependencies(args[0], args[1]));
}

/**
* Returns dependency coordinates that are not managed by shared dependency BOM.
*
Expand Down

0 comments on commit 09f3a0e

Please sign in to comment.