robovm / robovm-gradle-plugin

RoboVM Gradle plugin
45 stars 24 forks source link

Cache does not work with SNAPSHOT version #45

Closed ntherning closed 9 years ago

ntherning commented 9 years ago

Change the RoboVM version in the root build.gradle file in robovm-samples to 1.3.1-SNAPSHOT. Every launch using the Gradle plugin of one of the samples will rebuild all classes and seems to ignore the cache. It doesn't happen with the Maven plugin and not when launching the compiler directly using AppCompiler. So my guess would be the unpacking of the dist.tar.gz which we had to change recently. If the unpacking doesn't preserve last modification times of the JAR files the cached files will appear as outdated and every class in robovm-rt/robovm-cocoatouch will need to be recompiled.

ntherning commented 9 years ago

I can confirm that the tar.gz unpacking doesn't preserve timestamps. Since we unpack on every build when using a SNAPSHOT version of the dist.tar.gz each build will see new timestamps and the cache will be ignored.