Monday, December 9, 2013

Gradle - Add the jars to the dependencies in Eclipse


You need to install the [https://github.com/spring-projects/eclipse-integration-gradle]
I installed this version[http://dist.springsource.com/release/TOOLS/gradle]

build.gradle
apply plugin: "java"
apply plugin: 'eclipse'
defaultTableTasks = ['assemble']
version = '1.0'
sourceCompatibility = 1.7
targetCompatibility = 1.7
repositories {
mavenLocal()
mavenCentral()
}
eclipse {
classpath {
downloadSources=true
}
}
dependencies {
compile 'org.apache.poi:poi:3.9'
compile 'commons-codec:commons-codec:1.5'
compile 'commons-lang:commons-lang:2.6'
testCompile 'junit:junit:4.9'
}
view raw build.gradle hosted with ❤ by GitHub

$ gradle cleanEclipse eclipse

You can see jars file in the Eclipse

No comments:

Post a Comment