Questions tagged [spring-boot-gradle-plugin]

The Spring Boot Gradle Plugin provides Spring Boot support in Gradle, allowing you to package executable jar or war archives, run Spring Boot applications and use the dependency management provided by spring-boot-dependencies.

206 questions
1
vote
1 answer

gradle Annotation processor 'org.springframework.data.mongodb.repository.support.MongoAnnotationProcessor' not found

build.gradle apply plugin: "com.ewerk.gradle.plugins.querydsl" dependencies { compile "org.springframework.boot:spring-boot" compile "org.springframework:spring-webflux" compile "org.springframework.boot:spring-boot-autoconfigure" compile…
1
vote
1 answer

Spring Boot Thin Jar with Gradle not working

I tried to switch to a Spring Boot thin jar so that the dependencies are not included in the jar. I am using the thin-launcher gradle plugin: plugins { id 'org.springframework.boot.experimental.thin-launcher' version…
Timo Zikeli
  • 166
  • 1
  • 3
  • 7
1
vote
0 answers

Optional dependency with Spring Boot and Gradle

I need to add optional dependency as a separate jar to my Spring Boot application. If any dependency is added, the application should be able to scan Spring beans from this external jar. We use Spring Boot 2.2.2.RELEASE and Gradle 4.10.2. Do you…
Klaudia
  • 26
  • 3
1
vote
1 answer

spring boot plugin and gradle dependency implementation

We have been using gradle spring boot plugin version 1.5.14 and gradle 4.10.3 for our builds. After an upgrade of gradle to 6.2.2, we've also changed dependency-definition from compile group to implementation group i.e.: compile group:…
1
vote
1 answer

Is it possible to build springboot app as zip using gradle plugin?

I have weird dependency in springboot app that expects itself to be loaded as jar. springboot gradle plugin creates fatJar. it doesn't work. Is it possible to build springboot app as springboot jar with application thin jar and a library folder…
Capacytron
  • 3,425
  • 6
  • 47
  • 80
1
vote
1 answer

Configure gradle.build to build all spring boot sub projects to jars

I have multi-module Gradle project. Each module is full application with own @SpringBootApplication. Root project has no sources in src. How to configure root/build.gradle to build all sub-modules to executable JARs on executing ./gradlew build…
1
vote
0 answers

spring-boot-thin-launcher+gradle add local jar dependency

I am using spring-boot-thin-launcher to build a thinjar for my application. I am using gradle as my build tool and I have couple of local jar dependencies which are not available in maven repository which I am including in my build.gradle file as…
Venkat
  • 19
  • 2
1
vote
3 answers

How to build not executable jar (library) with Spring Boot Gradle Plugin 2.1.*

I'm trying to build a library. I have Spring Boot Gradle Plugin in my build.gradle file: plugins { id 'org.springframework.boot' version '2.1.3.RELEASE' } My library without the main class. To prevent 'Main class not configured ...' error I add to…
Valeriy K.
  • 2,616
  • 1
  • 30
  • 53
1
vote
0 answers

java.lang.AbstractMethodError: Receiver class org.springframework.cloud.bootstrap.BootstrapApplicationListener

While running the application of spring-boot, I'm having the following error. I don't find any reason for that error to appear. Please help me figure this out. stack trace java.lang.AbstractMethodError: Receiver class…
Jamshaid
  • 370
  • 2
  • 11
  • 40
1
vote
3 answers

Receiver class o.s.c.b.BootstrapApplicationListener$CloseContextOnFailureApplicationListener does not define or inherit an impl

I'm facing this error while running the project. I'm unable to know the cause of the error and unable to find a solution online as well. This project is running over another laptop without any error but when I extracted the zip and tried to run it,…
Jamshaid
  • 370
  • 2
  • 11
  • 40
1
vote
1 answer

Exception while creating a fat jar for spring boot application which depends on other project

This is follow up of my previous question Convert gradle multi project to springboot fat jar application I had a http servlet application which was a multi project gradle build, where my project was a contain gradle HttpServlet project and it…
nantitv
  • 3,539
  • 4
  • 38
  • 61
1
vote
1 answer

What way is better for use gradle BOM and spring-boot(multimodular application)

I use Gradle to build my spring-boot application. What do I want? I have a multimodular application where some modules are spring-boot applications. I want to get BOM spring dependencies in the parent project's Gradle file and use all libraries…
ip696
  • 6,574
  • 12
  • 65
  • 128
1
vote
0 answers

Spring Boot 1.5.x Gradle Plugin executable jar

I have a spring boot project using Gradle that is Spring Boot 1.5.7, when I build the executable jar the packaged jar file contains all my resources, application classes and manifest information for pointing to the main class. BUT it doesn't seem to…
PDStat
  • 5,513
  • 10
  • 51
  • 86
1
vote
0 answers

Specify gradle configuration or customize dependencies in bootJar task?

Our application is using EclipseLink. For production artifacts we use static weaving, we have a Gradle task that builds a separate jar that should be included in the Spring Boot fat jar. During development we are not using weaving so we don't have…
andersaa
  • 113
  • 9
1
vote
1 answer

Unable to execute SQL files using flyway plugin in gradle

I have created a simple spring-boot Gradle project. I want to my database to be created via flyway plugin from SQL file when my project is built. Below is my code snippet. The project gets build successfully but tables mention in SQL files are not…