[GRADLE-2691] maven2gradle generates deprecated property assignment Created: 22/Feb/13 Updated: 28/Mar/13 Resolved: 28/Mar/13
I am using gradle 1.4's maven2gradle. The build file it generated had a dependency section like this (I removed unimportant dependencies from the list here):
When I did a build, grade complained:
Usage of statement labels in build scripts has been deprecated and is scheduled to be removed in Gradle 2.0. In case you tried to configure a property named 'provided', replace ':' with '=' or ' '. Otherwise it will not have the desired effect.
provided : true
I'm not sure what should be here, because "provided" doesn't appear to be a valid property.
|Comment by Gradle Forums [ 22/Feb/13 ]|
Thanks for reporting this problem. I've exported it to JIRA. There are actually two problems here:
For projects that have the `war` plugin applied, you can use the `providedCompile` configuration. For other projects, I recommend to search the Gradle Forums/Stack Overflow/Google for how to achieve something similar to Maven's `provided` in Gradle.
Please bear with us, and keep in mind that it's early times for `maven2gradle`.
|Comment by Peter Walker (Inactive) [ 27/Feb/13 ]|
Luke and I had a quick chat on this. We think that changing the current text to a comment along the lines of: