Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

customAnnotator shows 'dynamic properties deprecated' warning when using Gradle plugin #163

Closed
BlackHornet opened this issue Mar 24, 2014 · 2 comments
Labels
Milestone

Comments

@BlackHornet
Copy link

Using gradle 0.9.+ customAnnotator is deprecated and not used.

The TaskContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the create() method instead. Creating properties on demand (a.k.a. dynamic properties) has been deprecated and is scheduled to be removed in Gradle 2.0. Please read http://gradle.org/docs/current/dsl/org.gradle.api.plugins.ExtraPropertiesExtension.html for information on the replacement for dynamic properties. Deprecated dynamic property: "customAnnotator" on "project ':modelgen'", value: "com.rockabyte.ActiveAn...".

Same output is present when using any of the projects annotators as custom annotator.

@BlackHornet BlackHornet changed the title customAnnotator deprecated [bug] customAnnotator deprecated Mar 24, 2014
@joelittlejohn joelittlejohn changed the title [bug] customAnnotator deprecated customAnnotator deprecated Mar 24, 2014
@joelittlejohn
Copy link
Owner

I can replicate this easily using Gradle 1.6 and I've poured over the plugin code and the build configuration but I just cannot see why this message is displayed.

I've tried specifying every single configuration property supported by the plugin and this is the only one that has this problem. I've checked and re-checked the property names, tried changing the type of the property, no matter what I do the deprecation warning is shown and the setter is not called. I'm starting to think there's an obscure bug in Gradle that we've uncovered.

Maybe @ben-manes can shed some light? Ben, if you have time to look at this or at least just sanity check the code again and make sure it's nothing obvious that would be great :)

@joelittlejohn
Copy link
Owner

This appears to have been caused by some problem in the Eclipse groovy compiler that's present in 1.8.6-01 but not in 2.1.8-01. We've used the latter version for jsonschema2pojo 0.4.2 and this problem is no longer present.

@joelittlejohn joelittlejohn added this to the 0.4.2 milestone May 19, 2014
@joelittlejohn joelittlejohn changed the title customAnnotator deprecated customAnnotator shows 'dynamic properties deprecated' warning when using Gradle plugin Jun 10, 2014
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants