Can't produce an executable jar from Spring Boot, Gradle, and IntelliJ-Idea -


i have created spring boot microservice using intellij-idea , gradle build engine. have made no changes initial spring boot configuration. have made no modifications build.gradle file provided. built application using starter.spring.io through intellij-idea , have following dependencies:

compile('org.springframework.boot:spring-boot-starter-data-jpa') compile('org.springframework.boot:spring-boot-devtools') compile('org.springframework.boot:spring-boot-starter-web') runtime('org.postgresql:postgresql') testcompile('org.springframework.boot:spring-boot-starter-test') 

the application contains 12 classes , 2 interfaces , web service provider. runs fine on system when build gradle, manifest.mf contains no main-class entry.

i created simple hello world app , tried several combinations of ide’s , build tools(gradle , maven) , got following results:  

enter image description here  

interestingly, able produce executable jars in eclipse has separate runnable jar export process.

i'm new intellij , gradle. has see behavior before? ideas might doing wrong in intellij? have hello world project zipped if needs it.

i took advise of m. denium , did gradle build command line. jars created formatted correctly executable. worked charm. in fact main-class spring boot class called org.springframework.boot.loader.jarlauncher , main class app in property called start-class. ide totally misses this.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -