Files with double dollar signs and addToAntBuilder

This issue has been open for a while without any apparent attention: https://issues.gradle.org/browse/GRADLE-3138. Are there any plans to address it, or any known workarounds? We run into this issue with classes generated by Dagger.