Just put your source code within src/main/java and it will compile automatically.
src/main/java/com/bns/csm/downstream/basket/jaxb
All you need is the java or java-libary plugin and it will compile all main and test java code.
src/main/java and src/test/java
plugins {
id 'java-library'
}
I assume your gradle project is gradle_test? No need, nor should you use absolute paths like that. It will make it much more difficult to build anywhere else.
However if what you really want is to run the javac manually on some piece of code. Other than you should not use absolute paths, the arguments looks right, but Windows path has wrong file separator /, should be . C:\Users…
Try adding -verbose to find out more about why javac failed.