ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The .m2 directory is where Maven downloads files to.

In Maven you add repos and dependencies to your pom files, in gradle to your gradle file. As an example, in the rosjava stack build.gradle:

repositories {
  mavenLocal()
  maven {
    url 'http://robotbrains.hideho.org/nexus/content/groups/ros-public'
  }
}

and in the rosjava PACKAGE's build.gradle:

dependencies {
  ...
  compile 'org.apache.commons:com.springsource.org.apache.commons.logging:1.1.1'
  compile 'org.apache.commons:com.springsource.org.apache.commons.net:2.0.0'
  testCompile 'junit:junit:4.8.2'
  }

Gradle then goes to the URL and tries to find the dependencies in the given version numbers, when gradle needs them.