概要 gradle run で実行する Java アプリケーションのコマンドライン引数は --args で指定することができる (Gradle 4.9 移行から可能) たとえば gradle run --args="aaa bbb ccc" のように指定することで Java のメインクラスの main メソッドに文字列の配列のパラメータをセットできる Gradle 4.9 より前では run タスクが実行される前処理を build.gradle に記述することで対処していた 記述例 aaa bbb ccc の3つの引数を指定する例。 公式情報 The Application Plugin Since Gradle 4.9, the command line arguments can be passed with --args. For example, if you want to la