title: How to pass command-line arguments to main class in gradle?
body: <p>I am creating simple Java class and I would like to create out-of-the-box launcher by using gradle.</p>
  
  <p>So I want to be able to run Java program via gradle:</p>
  
  <p><code>gradlew clean run These are my command line arguments</code> where <code>These are my command line arguments</code> are passed directly to my <code>public static void main(String... args)</code> method.</p>
  
  <p>I am using the <code>apply plugin: "application"</code> which gives me the <code>run</code> task. But when I am running this 'as is' I've got: </p>
  
  <p><code>* What went wrong:
  Task 'These' not found in root project 'question1'. Some candidates are: 'test'.
  </code></p>