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:
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
Post a Comment