gradle wsimport
问题 I'm running wsimport from my commandline to generate java classes from WSDL as below. wsimport -J-Djavax.xml.accessExternalDTD=all -J-D-Djavax.xml.accessExternalSchema=all -b http://www.w3.org/2001/XMLSchema.xsd -b customization.xjb -s genSrc https://example.com/XYZ.asmx?wsdl I want to create the equivalent gradle task. I shouldn't be using any random custom gradle plugins due to company restrictions. What's the best way to go about it? 回答1: Found on web use ant task more detail on metro