How to determin build commands

Hi. I’m a new gradle user. I was given a fairly straightforward java program with instructions to build and run with gradle. I run from the command-line on Linux. Is there a way for gradle to print to the screen the full instructions it uses to compile and run the Java code? For example, I would like it to print the actual javac commands that gradle uses to compile the code, and then also print the full command that gradle then uses to run the code.