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.
Questions tagged [spring-boot-gradle-plugin]
206 questions
1
vote
0 answers
How to include dependent jars of my dependencies in spring boot fat jar
We are using Gradle to build spring boot application.
Our application does not require commons-io. But one of the other dependencies requires commons-io. So we've not added commons-io as dependencies. gradle build worked fine.
But when we run the…

sag
- 5,333
- 8
- 54
- 91
1
vote
1 answer
Is there a sample Apache Phoenix + Spring Boot + Gradle sample project?
Without the Phoenix core, spring boot starts tomcat correctly.
Problem: Add
compile('org.apache.phoenix:phoenix-core:4.7.0-HBase-1.1') to the dependencies section of my build.gradle and Tomcat fails to start
dependencies {
…

aadidasu
- 1,037
- 4
- 15
- 26
1
vote
1 answer
Building a fully executable Spring Boot 1.3 war from a Gradle multi project build
I'm trying to build a fully executable WAR using Spring Boot 1.3 as per https://docs.spring.io/spring-boot/docs/current/reference/html/deployment-install.html. If I build a single Gradle project, it all works fine, but I havea multi project build,…

Pete Storey
- 296
- 4
- 14
0
votes
1 answer
Is it possible to restrict dependency management to a given configuration with the Spring Boot Gradle Plugin
I am using spring-boot-gradle-plugin:2.4.13 with Gradle 5.6.4.
We are using the "configurations" block of the dependency-management-plugin to limit dependency management to a set of specific Gradle configurations, as shown below
apply plugin:…

Simon Hutchinson
- 47
- 1
- 5
0
votes
1 answer
Could not resolve org.scaldingspoon.gradle:gradle-waroverlay-plugin:0.9.3
Suddunly got an error which state that
Could not resolve all artifacts for configuration ':common:security:cas-server:classpath'.
> Could not resolve org.scaldingspoon.gradle:gradle-waroverlay-plugin:0.9.3.
Required by:
project…

Shafeeq Mohammed
- 1,193
- 17
- 25
0
votes
1 answer
Gitlab build error - spring-boot-gradle-plugin:3.0.2 when updated from java 11 to 17
Below is the error I am getting while building the app on gitlab. This build works fine in the local IntelliJ, but when i am tying to build using the CI yml pipeline it fails. I feel in the gitlab the gradle build is using default java version as…

Vishal
- 3
- 3
0
votes
1 answer
wha's the difference in the two kind of gradle task defination?
tasks.named('bootBuildImage') {
}
bootBuildImage {
}
I find the source for the first usage in spring boot gradle plugin document , but I cannot find the source for the second one. And what difference between them?
I want to know source…

Flamer
- 5
- 4
0
votes
0 answers
Publish docker image in private registry.gitlab.com
How can I configure .gitlab-ci.yml in order to automatically publish an image in a gitlab docker private registry?
The relevant parte of my build.gradle script are:
plugins {
id 'java'
id 'org.springframework.boot' version…

lrkwz
- 6,105
- 3
- 36
- 59
0
votes
0 answers
Liquibase generate JPA entities diff springboot kotlin
I think this question has been asked prior but I am having a hard time configuring liquibase to work with spring-boot-kotlin (gradle). I want to generate liquibase change-log and change-set files basing on JPA entities - the requirement is to define…

V1666
- 185
- 3
- 14
0
votes
0 answers
Why spring-boot-gradle-plugin does not provide start and stop tasks to be used for integration tests?
I am trying to execute some UI tests on the browser (selenium-like tests) within a spring boot project, so I need to have the application up and running before those tests could be executed. The same thing is achieved easily in maven using the…

STaefi
- 4,297
- 1
- 25
- 43
0
votes
0 answers
How to create DLQ configuration for per topic?
I using spring cloud stream kafka and wanted to have DLQ setup for all consumer queue , it should be configuration based means I should be able to create DLQ through application.yml file for springboot project.
Any lead would be helpful at this…
0
votes
0 answers
Unable to start Spring boot Microservice
I'm creating a spring-boot starter application. The build is giving success but I'm unable to start the application it is stuck at a particular point and not moving forward not even throwing any error. I tried waiting for some time after running the…

Harmeet Kaur
- 154
- 14
0
votes
0 answers
I'm getting an internal server 500 error and I don't know how to debug it
I'm trying to upload a file to a springboot server and the upload feature is throwing this stack trace:
Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at…

Micu Bogdan
- 19
- 4
0
votes
1 answer
The import org.springframework.kafka cannot be resolved with gradle
I use a 'kafka-clients' dependency and It ran yesterday.
but it is not running because it can't find a KafkaListener Class.
These are a part of source that calls the KafkaListener class and a part of build.gradle file that are relation with…

Hyundong Seo
- 1
- 1
0
votes
1 answer
Cannot use Gradle to test spring-boot code in separate test module, throws NoClassDefFoundError
I created a project
- frog
-- frog-web
-- frog-test
frog is the root module, without code
frog-web is a spring-boot module, configured with bootJar, will be packaged into a whole jar
frog-test is a unit test module that references frog-web and…

Wei
- 451
- 1
- 5
- 15