Build tools are primarily responsible for producing the source code (provided the auto-generated code is utilized). It creates project documentation from the source code.
It compiles and packages the code in the form of JAR/ZIP file. Finally, places that code in the local, central, or remote repository.