1. 將下載的zip解壓到C:\local\gradle-3.2.1
2.在bin目錄下厌均,新建build.gradle,然后運行g(shù)radle download。
apply plugin: 'java'
repositories {
??? mavenCentral()
}
dependencies {
??? compile 'struts:struts:1.2.9'
}
task download(type: Copy) {
??? from configurations.runtime
??? into 'lib'
}
3.如果time out晶密,需要設(shè)置代理
在bin目錄下新建gradle.properties
systemProp.http.proxyHost=proxyHost
systemProp.http.proxyPort=80
systemProp.https.proxyHost=proxyHost
systemProp.https.proxyPort=80