./gradlew run --args="trades.json" Nothing printing

My command is giving build success but doesn’t print [“AAPL”,“MSFT”,“GOOGL”] on console

Getting a build success and getting the required output are two different things.

If you think your code is correct, do a ./gradlew build

You need to carry out a full build which automatically runs all tests. If that is successful it means you probably missed the output on console. Otherwise you’ll need to check your code.

Make sure you are returning a list of string from your method.