/*
 * Copyright 2016-2017 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *           http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

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

/**
 * Manages global dependency register.
 * When a dependency is resolved, its repo information will be registered here.
 * Later, resolving dependency of same repo can be faster.
 */
public interface DependencyRegistry {
    /**
     * Registers a dependency
     *
     * @param dependency The dependency to register
     * @return True if the dependency is newer than existing dependency with same name.
     */
    boolean register(ResolvedDependency dependency);

    ResolvedDependency retrieve(String name);
}

@@ -942,16 +942,71 @@
 pendency
+. In this course, conflicts will be resolved or thrown.
 %0A     *%0A
@@ -1076,13 +1076,20 @@
 urn 
-True 
+@%7Bcode true%7D
 if t
@@ -1150,16 +1150,41 @@
 ame name
+, @%7Bcode false%7D otherwise
 .%0A     *
@@ -1239,16 +1239,252 @@
 ency);%0A%0A
+    /**%0A     * Retrieve a registered dependency from the registry.%0A     *%0A     * @param name the name of dependency to be retrieved%0A     * @return the corresponding dependency, @%7Bcode null%7D if it does not exist in this registry%0A     */%0A
     Reso

Improve docs for DependencyRegistry