apply plugin: 'java'
apply plugin: 'eclipse'

task generateDependencies(type: Jar) {
  baseName = 'dependencies'
  from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
  with jar
}

repositories {
  def androidHome = System.getenv("ANDROID_HOME")
  maven {
    url "$androidHome/extras/android/m2repository/"
  }
  <% @repositories.each do |url| %>
    maven {
      url "<%= url %>"
    }
  <% end %>
  mavenCentral()
}
 
dependencies {
  <% @dependencies.each do |dependency| %>
    compile '<%= dependency[:name] %>:<%= dependency[:artifact] %>:<%= dependency[:version] %>'
  <% end %>
}

apply plugin: 'java'
apply plugin: 'eclipse'

task generateDependencies(type: Jar) {
  baseName = 'dependencies'
  from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
  with jar
}

repositories {
  def androidHome = System.getenv("RUBYMOTION_ANDROID_SDK")
  maven {
    url "$androidHome/extras/android/m2repository/"
  }
  <% @repositories.each do |url| %>
    maven {
      url "<%= url %>"
    }
  <% end %>
  mavenCentral()
}
 
dependencies {
  <% @dependencies.each do |dependency| %>
    compile '<%= dependency[:name] %>:<%= dependency[:artifact] %>:<%= dependency[:version] %>'
  <% end %>
}

Change root directory of support files to $RUBYMOTION_ANDROID_SDK
Change root directory of support files to $RUBYMOTION_ANDROID_SDK
