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
0
votes
0 answers
Ask how to create multi project spring boot using gradle?
I create multi project spring boot using maven it succeeds, but when trying to create with gradle it fails. Modules are not bound to each other.
Please guide me to create multi project in spring boot with gradle using Intelij,....
. Thank you

Thanh Vũ
- 1
0
votes
0 answers
How to build a modular spring jar with gradle?
I am working on a gradle multi-module project, where all* of the subprojects are jigsaw-modularized java libraries. In addition to the libraries, I have a spring boot application, which pulls in some of those libraries as dependencies, and exposes…

Stefan Rendevski
- 301
- 2
- 9
0
votes
0 answers
Docker Container fail to run the spring native executable built using GraalVM
I have built a simple REST API using springboot3 and graalVM runtime. I am trying to dockerize the same app and run locally. But upon running the container I get error
exec /app: exec format error. I am using mac M1 and trying to run docker…

Neha Rane
- 1
- 1
0
votes
1 answer
Implement TaskExecutor in spring boot where Scheduling is already defined
I have already define Scheduler in my spring boot project. Then I have to implement task scheduler which run thread pool. After I have added my scheduler task won't triggered. Even test case didn't run.
Scheduler Config…
0
votes
1 answer
Setting up gradle azurewebapp plugin for springboot deployment
I have a springboot webapp that i want to deploy to Azure. The app is springboot jar. I have been able to use azurewebapp plug in to achieve this but it is using OAUTH2 which limits integrating this deployment method into our CD (bitbucket).
So the…

Em Ae
- 8,167
- 27
- 95
- 162
0
votes
1 answer
NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider
I upgraded the plugin id 'org.springframework.boot' version '2.6.5' which led to the following changes
plugins {
id 'java'
id 'org.springframework.boot' version '2.6.5'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id…

A_G
- 2,260
- 3
- 23
- 56
0
votes
0 answers
Exclude sub springboot project in gradle during bootrun task
I have a multilevel spring boot project. I created a subproject which is also another spring boot project. When i run bootrun task in the gradle of parent project it started executing the child bootrun. How to exclude the child bootrun from parent…

Ravi
- 1
- 1
0
votes
1 answer
With the spring boot Gradle plugin, is there a task for writing the manifest file without packaging it
I am writing a plug-in using legacy code (on which I don't have any writing rights) for a spring-boot project, and I need to have access to the manifest file in his final form, as produced by the bootJar task. Sadly, this file seems too be directly…

Teocali
- 2,725
- 2
- 23
- 39
0
votes
1 answer
SpringBoot security on heroku-deployed project even without using its dependency
I am using java 1.8 for Gradle SpringBoot restAPI.
I haven't used spring-boot-starter-security and API works accordingly but after deploying the same code on heroku the API asks for the signup.
I tried disabling it via following way,
import…

MUsmanTahir
- 75
- 10
0
votes
0 answers
Is any alternative option for ui-view in angular
Looking for alternative method for page route in angular + spring boot project. With ui-view method page content not visible in page source.

pratik
- 9
- 1
0
votes
1 answer
Override jar task for project with bootJar behavior
I just upgraded the Gradle SpringBoot plugin version to 2.5.2 and found out about the difference between the jar and bootJar tasks - the former builds an artifact suffixed with -plain.jar whereas the latter builds an actual executable artifact. I…

user2654096
- 71
- 2
- 8
0
votes
1 answer
How to reference other classesdir in Gradle multi-project build
I am building an API using spring boot. I'm using gradle and a multi-project build set up where I have a services-lib project and an api project that depends on the services-lib.
Running the api:bootRun tasks in the api project works perfectly fine,…

Phil
- 1
- 2
0
votes
1 answer
How to configure bootBuildImage task to be up-to-date when no changes to source code
I'm trying to use spring boot 2.3's new support for creating docker images, but the bootBuildImage gradle task is never up-to-date. This unfortunately causes a new docker image to be generated even if no source code was changed.
My goal is to have a…

gyoder
- 4,530
- 5
- 29
- 37
0
votes
1 answer
Spring Boot Issue between jar and task that build jar: Gradle
Right now I am having this issue where I need to have my SpringBoot application be turned into an executable jar, but it needs to be done in a task as opposed to just a configuration in the gradle.build.
So the below snippet in my build.gradle will…

Grant Herman
- 923
- 2
- 13
- 29
0
votes
1 answer
How to turn on layering of build pack generated docker image in Spring Boot, using the the gradle plugin
In this video, Phil Webb describes how to turn on layering of a Spring Boot docker image built by build packs, by adding the layers enabled true configuration for the maven plugin. How do you configure the gradle plugin to do the same ? I can't see…

PaulNUK
- 4,774
- 2
- 30
- 58