title: How to export a Spring Boot project to an executable standalone file?
body: <p>I have created a project in Spring Tool Suite with Spring Boot and Gradle, and I really don't know how to export to make it work.</p>
  
  <p>I don't know much about gradle, just the basics to add dependencies from the maven repository. So in some articles says to apply the application plugin to do the task, but I don't know how to set up the configuration file and how to create the executable.</p>
  
  <p>If anyone could write or link a step by step detailed explanation on how to do it, it would be very much appreciated.</p>
  
  <p>This is my build.gradle file:</p>
  
  <pre><code>buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.1.RELEASE")
      }
  }
  
  apply plugin: 'java'
  apply plugin: 'eclipse'
  apply plugin: 'spring-boot'
  
  springBoot {
      mainClass = "com.rodamientosbulnes.objetivosventa.Application"
      executable = true
  }
  
  jar {
      baseName = 'objetivosventa'
      version =  '0.1.0'
  }
  
  repositories {
      mavenCentral()
  }
  
  sourceCompatibility = 1.8
  targetCompatibility = 1.8
  
  dependencies {
      compile('org.springframework.boot:spring-boot-starter')
      compile('org.springframework:spring-jdbc')
      compile('net.sourceforge.jtds:jtds:1.3.1')
      compile('org.apache.poi:poi-ooxml:3.13')
      compile('com.miglayout:miglayout-swing:4.2')
  }
  
  task wrapper(type: Wrapper) {
      gradleVersion = '2.3'
  }
  </code></pre>