Open jsbournival opened 6 years ago
What if you replace html2
with other generator (e.g. ruby, php)?
You may find gradle plug-in useful: https://github.com/swagger-api/swagger-codegen#gradle-integration
I tried with other generator, and they are working fine.
@jsbournival I really have no clue. Maybe using the JAR (swagger-codegen-cli) to generate html2
as a workaround for the time being.
Description
Given a Gradle project with the following 2 tasks (one generating server code with language
spring
and the other one the static HTML with languagehtml2
). The problem is that nothing gets written in the case of the static HTML task when running the build task. If generate HTML task gets called explicitly it works fine.Swagger-codegen version
io.swagger:swagger-annotations:1.5.16 io.swagger:swagger-codegen:2.2.3
Swagger declaration file content or url
Attaching both tasks to
compileJava
.Command line used for generation
Steps to reproduce
./gradlew clean build
Suggest a fix/enhancement