Gradle 今天听强哥在说他们公司用这个 跟maven差不多 寻思的弄看到底是什么玩意
去官网 下 https://gradle.org/releases/ 跟maven的安装一样 显示解压 然后是配置环境变量 jar包下载下来默认在
D:\program\gradle-4.8\caches\modules-2\files-2.1 下面
最后在cmd输入 gradle -v 有显示gradle的版本信息 安装成功
eclipse里面要使用 gradle 还要下载一个插件 在eclipse的市场中输入
Buildship 查找出来的安装就行
最后重启eclipse 新建gradle project 就行了
dependencies {
// This dependency is exported to consumers, that is to say found on their compile classpath.
api 'org.apache.commons:commons-math3:3.6.1'
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
implementation 'com.google.guava:guava:23.0'
// Use JUnit test framework
testImplementation 'junit:junit:4.12'
// https://mvnrepository.com/artifact/com.alibaba/fastjson
compile group: 'com.alibaba', name: 'fastjson', version: '1.2.47'
// https://mvnrepository.com/artifact/commons-logging/commons-logging
compile group: 'commons-logging', name: 'commons-logging', version: '1.2'
// https://mvnrepository.com/artifact/log4j/log4j
compile group: 'log4j', name: 'log4j', version: '1.2.17'
}