Last active
January 17, 2020 01:30
-
-
Save ksomemo/d64039546965141967aeb3b2be359fdd to your computer and use it in GitHub Desktop.
digdag plugin downloader
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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