Class ResourceSync

java.lang.Object
io.github.intisy.gradle.github.plugin.ResourceSync

public class ResourceSync extends Object
Syncs the configured GitHub resource repository into the project's resources before they are processed.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ResourceSync

      public ResourceSync()
  • Method Details

    • apply

      public 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.
      Parameters:
      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.