Custom SourceSet issue while creating war

instead of main just use debug

debug {
            java {
    	    	srcDir 'web/JavaSource'
            }
            resources {
    			srcDir 'app/GeneratedSource'
    			srcDir 'app/JavaSource'
    	    	srcDir 'web/JavaSource'
            }
            compileClasspath += svc.output
        }