Class ResourceSync
java.lang.Object
io.github.intisy.gradle.github.plugin.ResourceSync
Syncs the configured GitHub resource repository into the project's resources before they are processed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapply(org.gradle.api.Project project, Logger logger, ResourceSettings resourcesExtension, Repositories repositories) Registers theprocessGitHubResourcestask and wires it ahead ofprocessResources, so the configured repository is cloned/pulled and copied intosrc/main/resourcesbefore Gradle bundles resources into the jar.
-
Constructor Details
-
ResourceSync
public ResourceSync()
-
-
Method Details
-
apply
public static void apply(org.gradle.api.Project project, Logger logger, ResourceSettings resourcesExtension, Repositories repositories) Registers theprocessGitHubResourcestask and wires it ahead ofprocessResources, so the configured repository is cloned/pulled and copied intosrc/main/resourcesbefore Gradle bundles resources into the jar.- Parameters:
project- the project to register the sync task on; a no-op unless thejavaplugin 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.
-