public class ResourceSync
extends java.lang.Object
| Constructor and Description |
|---|
ResourceSync() |
| Modifier and Type | Method and Description |
|---|---|
static void |
apply(org.gradle.api.Project project,
Logger logger,
ResourceSettings resourcesExtension,
Repositories repositories)
Registers the
processGitHubResources task and wires it ahead of
processResources, so the configured repository is cloned/pulled and copied into
src/main/resources before Gradle bundles resources into the jar. |
public static void apply(org.gradle.api.Project project,
Logger logger,
ResourceSettings resourcesExtension,
Repositories repositories)
processGitHubResources task and wires it ahead of
processResources, so the configured repository is cloned/pulled and copied into
src/main/resources before Gradle bundles resources into the jar.project - the project to register the sync task on; a no-op unless the java plugin is applied.logger - receives diagnostic output.resourcesExtension - the extension supplying the repository URL, branch, and sub-path to sync.repositories - the client used to clone/pull the configured repository.