Gradle的使⽤教程⽬录:
1、
eclipse安装教程tomcat2、
3、
4、
5、
1、安装 Gradle
  配置gradle默认的仓库地址(和maven不太⼀样)
  测试环境变量是否配置成功:
2、使⽤ idea 创建⼀个 Gradle 项⽬
  双击 war
  打包完成之后的 war ⽂件会在
  然后把war放⼊对应的tomcat⽬录即可。
3、 adle 配置⽂件
  adle ⽂件是配置项⽬中要使⽤的库的⽂件。它和 Maven ⼯程中的 l 相同。  添加 commons-lang3 包
plugins {
id'java'
id'war'
}
group ''
version '0.1'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile group: 'junit', name: 'junit', version: '4.12'
compile group: 'org.apachemons', name: 'commons-lang3', version: '3.0'
}
  依赖:
  使⽤ commons-lang3
;
import org.apachemons.lang3.StringUtils;
public class demo {
public static void main(String[] args) {
String text1 = "a12340";
String text2 = "1234";
boolean result1 = StringUtils.isNumeric(text1);
boolean result2 = StringUtils.isNumeric(text2);
System.out.println(text1 + " is a numeric? " + result1);
System.out.println(text2 + " is a numeric? " + result2);
}
}
4、gradle 本地仓库
  默认情况下,Gradle软件将通过 Eclipse 下载到C:/Users/{username}/.gradle⽬录中。由于配置了gradle 本地仓库的地址为d:\repo\gradle,
5、查 jar 依赖的导⼊信息(坐标)
参考:
  1)
  2)