package com.github.blindpirate.gogradle.core.dependency.lock;

import com.github.blindpirate.gogradle.build.Configuration;
import com.github.blindpirate.gogradle.core.dependency.GolangDependencySet;
import com.github.blindpirate.gogradle.core.dependency.ResolvedDependency;

import java.util.Collection;

public interface LockedDependencyManager {
    GolangDependencySet getLockedDependencies(Configuration configuration);

    void lock(Collection<? extends ResolvedDependency> flatBuildDependencies,
              Collection<? extends ResolvedDependency> flatTestDependencies);
}

package com.github.blindpirate.gogradle.core.dependency.lock;

import com.github.blindpirate.gogradle.core.dependency.GolangDependency;
import com.github.blindpirate.gogradle.core.dependency.GolangDependencySet;

import java.util.Collection;

public interface LockedDependencyManager {
    GolangDependencySet getLockedDependencies();

    void lock(Collection<? extends GolangDependency> flatDependencies);
}

--- 
+++ 
@@ -1,12 +1,14 @@
 package com.github.blindpirate.gogradle.core.dependency.lock;
 
-import com.github.blindpirate.gogradle.core.dependency.GolangDependency;
+import com.github.blindpirate.gogradle.build.Configuration;
 import com.github.blindpirate.gogradle.core.dependency.GolangDependencySet;
+import com.github.blindpirate.gogradle.core.dependency.ResolvedDependency;
 
 import java.util.Collection;
 
 public interface LockedDependencyManager {
-    GolangDependencySet getLockedDependencies();
+    GolangDependencySet getLockedDependencies(Configuration configuration);
 
-    void lock(Collection<? extends GolangDependency> flatDependencies);
+    void lock(Collection<? extends ResolvedDependency> flatBuildDependencies,
+              Collection<? extends ResolvedDependency> flatTestDependencies);
 }
Add support for test dependencies
