Is it possible to configure where the jar file is generated by java plug-in jar task?

I am new to gradle. So apologize first if this is a naive question. I understand that with java plugin’s jar task, the JAR file generated is put in the build/libs directory. Is this path configurable?

See ‘Jar’ in the Gradle Build Language Reference.