Skip to content

Instantly share code, notes, and snippets.

@ksomemo
Last active January 17, 2020 01:30
Show Gist options
  • Save ksomemo/d64039546965141967aeb3b2be359fdd to your computer and use it in GitHub Desktop.
Save ksomemo/d64039546965141967aeb3b2be359fdd to your computer and use it in GitHub Desktop.
digdag plugin downloader
import io.digdag.core.plugin.RemotePluginLoader;
import io.digdag.core.plugin.Spec;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
Spec spec = Spec.of(
Arrays.asList("https://jitpack.io"),
Arrays.asList("com.github.szyn:digdag-slack:0.1.4")
);
String localPath = "test-digdag-plugins";
Path localRepositoryPath = Paths.get(localPath);
new RemotePluginLoader(localRepositoryPath).load(spec);
}
}
// javac -cp .:digdag.jar Main.java
// java -cp .:digdag.jar Main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment