Class SourcesResolution
java.lang.Object
io.github.intisy.gradle.github.plugin.SourcesResolution
Resolves every
sources { git { } / jar { } } entry into a local jar and adds it to its
configured native Gradle configuration, after the project is evaluated.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapply(org.gradle.api.Project project, Logger logger, SourcesExtension sourcesExtension, SourceBuilds sourceBuilds, Downloads downloads, Set<File> addedJars)
-
Constructor Details
-
SourcesResolution
public SourcesResolution()
-
-
Method Details
-
apply
public static void apply(org.gradle.api.Project project, Logger logger, SourcesExtension sourcesExtension, SourceBuilds sourceBuilds, Downloads downloads, Set<File> addedJars) - Parameters:
project- the project whosesourcesextension is resolved.logger- receives diagnostic output.sourcesExtension- the extension supplying the declaredgit/jarentries.sourceBuilds- resolves eachgitentry to a jar.downloads- resolves eachjarentry to a jar.addedJars- the dedup filter shared withDependencyResolution.apply(Project, Logger, GithubExtension, Releases, Set), so a jar reachable from both agithub*coordinate and asourcesentry is added to a native configuration only once.
-