1 使用Maven 或 Gradle构建groovy
1.1 使用maven构建groovy
pom.xml
file.
<dependencies>
... other dependencies
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.4.5</version>
</dependency>
</dependencies>
1.2 使用Gradle构建groovy
To use Groovy code in your Gradle build, simply add the following dependency to your pom.xml
file.
apply plugin: ‘groovy‘
repositories {
mavenCentral()
}
dependencies {
compile ‘org.codehaus.groovy:groovy-all:2.4.5‘
}
时间: 2024-11-08 19:41:20