All configuration needed should be in build.gradle Simply add the URL here:
def downloadUrl = "PUT_URL_HERE"
where your swagger zip is located and run the module.
You can adjust the path to make your package correct in this line.
def outputDir = "../app/src/main/java"