plugins {
  id 'org.hidetake.ssh' version '2.9.0'
}

这是 gradle 2.1 及以上最新版本的语法

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.hidetake:gradle-ssh-plugin:2.9.0"
  }
}

apply plugin: "org.hidetake.ssh"

下面这个是 2.0及older 版本的语法,惊不惊喜:)

 

转载于:https://www.cnblogs.com/t0000/articles/9453404.html

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐