title: trying to create a jar executable in IntelliJ IDEA
body: <p>I'm trying to build a jar file for a tornadofx project,</p>
  
  <p>it runs normally when i run the main function in my.kt
   (seri/src/main/kotlin/my.kt)</p>
  
  <pre><code>package com.serious
  
  import tornadofx.*
  import tornadofx.App
  import tornadofx.launch
  
  fun main() {
      launch&lt;MyApp&gt;()
  }
  
  class MyApp : App(primaryView = ViewX::class)
  //-------------------------
  class ViewX : View("My View") {
  
      override val root = vbox {
  
          button("add an item") {
  
          }
      }
  }
  </code></pre>
  
  <p>the build.gradle file</p>
  
  <pre><code>buildscript {
      ext.kotlin_version = "1.2.60"
      ext.tornadofx_version = "1.7.17"
      ext.junit_version = "5.1.0"
  
      repositories {
          mavenLocal()
          mavenCentral()
      }
      dependencies {
          classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
          classpath "org.junit.platform:junit-platform-gradle-plugin:1.1.0"
      }
  }
  
  plugins {
      id 'java'
      id 'org.jetbrains.kotlin.jvm' version '1.3.31'
      id 'org.openjfx.javafxplugin' version '0.0.7'
  
  }
  
  version '1.0-SNAPSHOT'
  
  sourceCompatibility = 1.8
  
  repositories {
      mavenLocal()
      mavenCentral()
  }
  
  dependencies {
      compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
  
      implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
      testCompile group: 'junit', name: 'junit', version: '4.12'
      compile 'no.tornado:tornadofx:1.7.18'
  
  }
  
  compileKotlin {
      kotlinOptions.jvmTarget = "1.8"
  }
  compileTestKotlin {
      kotlinOptions.jvmTarget = "1.8"
  }
  
  javafx {
      version = "12.0.1"
      modules = ['javafx.controls']
  }
  </code></pre>
  
  <p>running windows 10, intelli IDEA 2019.1.1
  i made a jar artifact in the project structure,and 'build artifacts' from build menu,, it built a jar file but it's not running, shows error " Error: Could not find or load main class com.serious.MyApp
  Caused by: java.lang.NoClassDefFoundError: tornadofx/App
  "</p>