| Please see Gradle 1.0-rc-1 Release Notes for details of the features in this release. |
Known Issues
None yet
Deprecations
Command Line Options
--cache
The command line option --cache has been deprecated. Use --recompile-scripts or --rerun-tasks instead.
--no-opt
The command line option --no-opt has been deprecated. Use --rerun-tasks instead.
--refresh
The command line option --refresh has been deprecated. Use --refresh-dependencies instead.
API classes and methods
Jvm
The class org.gradle.util.Jvm has been deprecated.
StartParameter
getCacheUsage()
The method getCacheUsage() has been deprecated. Use isRecompileScripts() and/or isRerunTasks() instead.
setCacheUsage(CacheUsage)
The method setCacheUsage() has been deprecated. Use setRecompileScripts(boolean) and/or setRerunTasks(boolean) instead.
setRefreshOptions(RefreshOptions)
The method setRefreshOptions(RefreshOptions) has been deprecated. Use setRefreshDependencies(boolean) instead.
getRefreshOptions()
The method getRefreshOptions() has been deprecated. Use isRefreshDependencies() instead.
setNoOpt(boolean)
The method setNoOpt(boolean) has been deprecated. Use setRerunTasks(boolean) instead.
isNoOpt()
The method isNoOpt has been deprecated. Use isRerunTasks() instead.
RefreshOptions
The class org.gradle.RefreshOptions has been deprecated.
CacheUsage
The class org.gradle.CacheUsage has been deprecated.
Potential Breaking Changes
Classpath changes for test process
As described in the release notes, the way we construct classpath for the JVM used to run tests has changed.
In most cases, your tests will continue to run just fine. But if you have java code that looks for a particular jar file on the classpath (by reading the java.class.path system property, or by iterating over URLs from the URLClassLoader.getURLs(), then this code will need to look for jars loaded via manifest Class-Path entries as well.
Please let us know if you encounter this issue during upgrade to Gradle-1.0. If this causes significant pain we'll consider looking for alternative solutions (although none are immediately apparent).
