首页 > 代码库 > 开发环境-Gradle

开发环境-Gradle

1.解压压缩包
2.配置环境变量(gradle -h)
GRADLE_HOME -> E:\gradle\gradle-2.14 -> 修改 Path环境变量,添加 %GRADLE_HOME%\lib;
GRADLE_USER_HOME -> E:\gradle\gradleLocalRepository
3.maven转gradle
gradle init --type pom
4.gradle转maven
apply plugin: ‘java‘
apply plugin: ‘maven‘
group = ‘com.101tec‘
version = ‘0.7-dev‘
sourceCompatibility = 1.6
task writeNewPom << {
pom {
project {
inceptionYear ‘2008‘
licenses {
license {
name ‘The Apache Software License, Version 2.0‘
url ‘http://www.apache.org/licenses/LICENSE-2.0.txt‘
distribution ‘repo‘
}
}
}
}.writeTo("pom.xml")
}

开发环境-Gradle