roboscala / sbt-robovm

An sbt plugin for iOS development in Scala
BSD 2-Clause "Simplified" License
108 stars 16 forks source link

Automatically download robovm-X.Y.Z.tar.gz #28

Closed ntherning closed 9 years ago

ntherning commented 9 years ago

The maven and gradle plugins do this already. This is dead simple now since we added the robovm-maven-resolver artifact. Here's how to:

  RoboVMResolver resolver = new RoboVMResolver();
  File dir = resolver.resolveAndUnpackRoboVMDistArtifact("1.0.0-alpha-04");

This will download the robovm-dist artifact with the specified version from Maven Central and unpack it into the local Maven repository and return the path to it. If this has already been done it does nothing.

The resolver will be included in the next RoboVM release.

ajhager commented 9 years ago

I assume that robovm-maven-resolver will be added to Maven Central at some point then?

ntherning commented 9 years ago

Yes, it will be pushed to Maven Central when we do the next release. Snapshots are already pushed though if you want to try it out already.

ajhager commented 9 years ago

Fixed in 7c4ea6a085062fd04e89689a86763ae4f4cf3c71.