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

import com.github.blindpirate.gogradle.core.GolangConfiguration;
import org.gradle.api.artifacts.Dependency;
import org.gradle.api.specs.Spec;

import java.io.Serializable;
import java.util.Set;

/**
 * A {@link GolangDependency} represents a dependency
 * such as a specific version of source code or a local directory.
 */
public interface GolangDependency extends Dependency, Serializable {
    /**
     * The dependency's import path, e.g., golang.org/x/crypto/cmd.
     * <p>
     * However, currently we support golang.org/x/crypto (the root path) only.
     *
     * @return dependency's import path
     */
    @Override
    String getName();

    /**
     * A unique identifier to locate a dependency, e.g., git commit id.
     *
     * @return the version string
     */
    @Override
    String getVersion();

    ResolvedDependency resolve(GolangConfiguration configuration);

    boolean isFirstLevel();

    Set<Spec<GolangDependency>> getTransitiveDepExclusions();
}


@@ -116,16 +116,75 @@
 ration;%0A
+import com.github.blindpirate.gogradle.core.GolangPackage;%0A
 import o
@@ -927,24 +927,57 @@
 Version();%0A%0A
+    GolangPackage getPackage();%0A%0A
     Resolved

Move getPackage from NotationDependency to GolangDependency