maven - Gradle dependency management using pom.xml -


in build.gradle specify dependencies

compile group: 'org.apache.pig', name: 'pigunit', version: '0.11.0-cdh4.5.0', transitive: true 

running gradle cleaneclipse eclipse sets projects(adds jar classpath)

however there maven dependencies available apis (i trying run jersey 2.x examples bundle https://jersey.java.net/download.html , provides pom.xml)

edit: know can specify compile group: 'groupid', name: 'artifactid', version: 'version' gradle doing manually dependencies or writing program should not natural gradle way. gradle provides maven plugin http://gradle.org/docs/current/userguide/maven_plugin.html.i haven't tried out should able it

gradle supports maven dependencies. specify dependencies in same way example:

compile group: 'groupid', name: 'artifactid', version: 'version' 

to lookup the artifact coordinates, can use sites http://search.maven.org

the thing have make sure include either internal maven repository (if in company has one) or maven central:

repositories {     mavencentral() } 

or

repositories {     maven {         url "http://repo.mycompany.com/maven2"     } } 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -