So the solution to:<p><pre><code> error: package org.springframework.cloud.security.oauth2.client.feign does not exist
</code></pre>
is to manually add the lines:<p><pre><code> task deleteNonClientRelatedClasses(dependsOn: 'generateClient') {
doLast {
delete "${project.buildDir}/src/main/java/io"
}
}
</code></pre>
to the Gradle build script? Sounds like Swagger is inserting itself into the complexity spiral dominated by Spring, Gradle, and Apache Groovy.<p>PS: This was already submitted to HN 12 hrs ago by the same user: <a href="https://news.ycombinator.com/item?id=17332028" rel="nofollow">https://news.ycombinator.com/item?id=17332028</a>