title: how to run the clojure main from gradle application plugin
body: <p>I've main clojure <a href="https://github.com/rajcspsg/clojure-gradle-demo/blob/master/src/main/clojure/main/main.clj" rel="nofollow noreferrer">file</a> -</p>
  <pre><code>(ns main.main
    (:gen-class))
  
  (defn -main
        &quot;I don't do a whole lot ... yet.&quot;
        [&amp; args]
        (println &quot;Hello, World!&quot;))
  </code></pre>
  <p>I've <a href="https://github.com/rajcspsg/clojure-gradle-demo/blob/master/build.gradle" rel="nofollow noreferrer">build.gradle</a> file -</p>
  <pre><code>plugins {
      id 'dev.clojurephant.clojure' version '0.7.0-alpha.1'
      id 'application'
  }
  
  group 'org.example'
  version '0.0.1-SNAPSHOT'
  repositories {
      maven {
          name = 'Clojars'
          url = 'https://repo.clojars.org'
      }
      mavenCentral()
  }
  
  
  dependencies {
      implementation 'org.clojure:clojure:1.11.1'
  
      testRuntimeOnly 'org.ajoberstar:jovial:0.3.0'
  
      devImplementation 'org.clojure:tools.namespace:1.3.0'
      
      testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
  }
  
  tasks.withType(Test) {
      useJUnitPlatform()
  }
  
  application {
      mainClassName(&quot;main.main&quot;)
  }
  </code></pre>
  <p>Now I tried to run the gradle application using command <code>gradle run</code> and encountered below error -</p>
  <blockquote>
  <p>Error: Could not find or load main class main.main</p>
  <p>Caused by: java.lang.ClassNotFoundException: main.main</p>
  </blockquote>
  <p>I tried some more application configuration but didn't work -</p>
  <pre><code>
  application {
      mainClass = &quot;clojure.main&quot;
      mainModule = &quot;main.main&quot;
  }
  </code></pre>
  <p>what is the correct value of <code>mainClass</code> and <code>mainModule</code>.</p>