opened
gordwilling
username_0
Adding the generated source to the main source set means that any warnings from the generated code cannot be turned off without affecting manually-written code.  

If the generated code is managed using its own sourceSet, compiler options can be configured separately.

There is a workaround but we should fix it properly.  I can do that if you want

The workaround is:

project.afterEvaluate {
    // workaround for a bug in wsdl2java
    // the wsdl2java plugin adds its generated source to the main
    // java source set; we prefer to have the generated source in a
    // different sourceSet such that compiler warnings can be suppressed
    // for generated code only
    sourceSets.main.java.srcDirs = ["$projectDir/src/main/java"]
}
Create a sourceSet for generated code to enable different compiler options
issue