Intermediate ivy directories workaround with gradle 2.0+

Hi!

It’s been 3 years since the problem about intermediate directories with ivy publish was first mentioned:

There is also an issue created that has not moved forward since: [#GRADLE-2392] Gradle should create intermediate directories on publish to Ivy

The suggested workaround relied on custom resolvers that are now deprecated. I need to publish to ivy repo using webdas and there is no possible workaround.
I either use custom resolver and get a unable to find class
or I just use an ivy repository to publish and get 404 on the PUT request, as it needs and intermediate repo. How can I achieve this wanted behaviour or do I really need to downgrade to a very early version of gradle to get this to work.