module KPM::Tasks

def pull_java_plugin(artifact_id, version='LATEST')

def pull_java_plugin(artifact_id, version='LATEST')
  response = KillbillPluginArtifact.pull(logger,
                                         KillbillPluginArtifact::KILLBILL_JAVA_PLUGIN_GROUP_ID,
                                         artifact_id,
                                         KillbillPluginArtifact::KILLBILL_JAVA_PLUGIN_PACKAGING,
                                         KillbillPluginArtifact::KILLBILL_JAVA_PLUGIN_CLASSIFIER,
                                         version,
                                         options[:destination],
                                         options[:sha1_file],
                                         options[:force_download],
                                         options[:verify_sha1],
                                         options[:overrides],
                                         options[:ssl_verify])
  say "Artifact has been retrieved and can be found at path: #{response[:file_path]}", :green
end