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
2 answers

How to get a spring boot dependency version in Gradle?

Having plugin disabled plugins { id 'org.springframework.boot' version '2.7.9' apply false } And imported BOM manually, I want to get version in dependencies subprojects { dependencyManagement { imports { mavenBom…
Artem Ptushkin
  • 1,151
  • 9
  • 17
1
vote
0 answers

Gradle 4.10 to Gradle 6.8 upgrade issue - Failed to build

I have currently Spring Boot 2.2.x running with Gradle 4.10. I want to upgrade Spring Boot version to 2.5.x in order to fix vulnerabilities. As Spring Boot 2.5.x requires Gradle 6.8.x and above, I am updating gradle version to 6.8 in…
1
vote
1 answer

Spring boot application is not picking all the test cases for execution after migrating spring boot 2.5.12

We have spring-boot application ,when we try to run unit tests it seems that some of the unit tests cases are not picking for execution. This issue started happening after upgrading spring boot version from 2.3.9 to 2.5.12 We are using java…
1
vote
1 answer

Spring Boot Gradle build fails with "Execution failed for task 'bootWarMainClassName'

I have a multi-project gradle build with Spring Boot structured per default gradle conventions. root -- common -- src/main/java -- bootproject -- src/main/java My current project is to (A) upgrade gradle from 5.x to 7.3.x and…
Fedaykin
  • 51
  • 1
  • 4
1
vote
1 answer

Jsp page getting download instead of rendering in gradle

I am using spring boot with Gradle I have added all the dependencies in the build. Gradle file but I don't know why the JSP page is getting downloaded instead of rendering. This is my code. build.gradle plugins { id 'org.springframework.boot'…
1
vote
1 answer

Could not find class [org.springframework.boot.autoconfigure.condition.ConditionalOnJava$JavaVersion]

i use intellij and java 1.8 for running my springboot i have tried to create main jar like this on my code : @SpringBootApplication @RestController public class DemoApplication { public static void main(String[] args) { …
aaaaaajib
  • 49
  • 1
  • 6
1
vote
1 answer

Spring boot application with cloud run and cloud firestore

I have a simple spring boot microservice (gradle) that I want to deploy on cloud run and use cloud Firestore for storing some data. I configured it locally, so I can read and write data to firestore. If I create and run a docker image of the…
1
vote
0 answers

How is it possible to have docker images 41 yars old

Running docker images on my workstation I see pack.local/builder/qxoshxwcye latest 41 years ago 782MB paketobuildpacks/builder base …
Bartosz Bilicki
  • 12,599
  • 13
  • 71
  • 113
1
vote
1 answer

Transitive dependency version is downgraded by Spring boot gradle plugin

I have a gradle project which is used as a library in other projects. The library project specifies a dependency: compile('org.apache.kafka:kafka-clients') { version { strictly '2.6.1' } …
1
vote
1 answer

How can I exclude the jars using BootJar similar to customConfiguration in BootRepackage?

I have recently done the spring boot migration from 1.5.8 to 2.1.14-RELEASE and using gradle as a build script. I am using spring-boot-gradle-plugin and spring-boot-dependency-management plugins. We are creating 4 executable jars (eureka, oAuth,…
1
vote
0 answers

Spring Boot Docker layers with transitive dependencies

I've multiple Microservices with varied 3rd party dependencies, currently using default spring boot docker layers which copies all the dependencies to same dependencies layer. However I want to split the dependencies into core and dependencies…
1
vote
1 answer

How do i send notification from Springboot using Firebase In App Messaging?

I want to send notification from Spring boot using firebase In App Messaging. I have done using firebase cloud messaging but get difficulties in firebase In App Messaging. please provide some source or other suggestions like Spring boot builder()…
1
vote
0 answers

Spring Boot (Reactive) - bootJar vs Service Provider Interface (SPI)

I'm using Reactive Spring Boot with Netty and Gradle as a build system. To build production's executable I use a task bootJar with launchScript(). I'm also using various TwelveMonkeys' plugins for ImageIO processing. Everything works fine when I run…
1
vote
0 answers

Is it possible to set cache-from for bootBuildImage gradle task

So, I am creating a Spring Boot Application Docker Image. As I see, there is a plugin available for it which can be just invoked as a gradle task as ./gradlew bootBuildImage If I am using this plugin, how do I mention the --cache-from option as if…
1
vote
1 answer

Proper way to switch Spring Data release train in Spring Boot Gradle Plugin

I am trying to build a new up to date Spring Boot project but cannot find a way to switch Spring Data release train. We are using Elasticsearch with version 6.8 so I cannot just go with default dependencies provided by Spring Boot. Spring Data…