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
3
votes
1 answer

Why Gradle 'build' task is not up-to-date even there is no change in the source code?

I created a Gradle project for a spring application. My build.gradle is as follows: buildscript { ext { springBootVersion = '1.3.5.RELEASE' } repositories { mavenCentral() jcenter() } dependencies { …
3
votes
0 answers

Fails to resolve dependency for a sub-module with spring boot plugin

I use gradle, and has a module/project that has spring boot plugin applied. Lets Say in a project sub-module, I have apply plugin: "spring-boot". Now from a another module/project I am adding a testCompile dependency to the sub-module. Say from…
Sathyakumar Seshachalam
  • 2,013
  • 3
  • 20
  • 32
2
votes
1 answer

How to fix spring-boot-gradle-plugin:3.0.0 issue?

I am deploying spring boot app on heroku using gitlab ci/cd i am using spring boot 3.0.0 and java 17 Anyone knows how to fix it? Also on line 8 it's -----> Installing OpenJDK 1.8... done i don't know why and how even i have java 17 in app Deploying…
noBoom
  • 127
  • 2
  • 9
2
votes
0 answers

Spring Gradle bootBuildImage did not use the docker host being passed

I use gradle bootBuildImage to build the docker image for my springboot application with the following settings in build.gradle.kts: tasks.named("bootBuildImage") { imageName =…
2
votes
1 answer

How to switch to a different jdk distro from spring boot gradle plugin buildBootImage

Using Spring boot and gradle to build docker image for deploy on my K8s infrasctructure. I would like to switch from Paketo's Liberica OpenJDK distro to Adoptium's OpenJDK on the docker image. When I make the changes indicated on Paketo's site,…
2
votes
0 answers

exclude spring boot devtools (developmentOnly) dependencies from plain war packaging

Using the spring-boot-gradle plugin I declared the spring-boot-devtools jar as developmentOnly. According to the documentation developmentOnly jars are excluded from executable jar and war, but I need to deploy plain war to production and not the…
LameDuck31
  • 21
  • 3
2
votes
0 answers

Switching from Palantir Gradle-Docker Plugin to Spring Boot Gradle Plugin bootBuildImage

I'm attempting to build a Docker image using the Spring Boot Gradle Plugin and am having trouble figuring out how to specify my image configuration. I'm familiar with the Spotify (Maven) and Palantir (Gradle) Docker plugins for building Docker…
Mark
  • 4,970
  • 5
  • 42
  • 66
2
votes
1 answer

BootJar didn't create BOOT-INF folder after spring boot migration from 1.5.8 to 2.1.14-RELEASE

I have done the migration of the Spring Boot Application 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. In our spring boot project, we are creating…
2
votes
1 answer

When building layered jars in Spring Boot, how do you include a multi-module projects jars in a layer?

According to the Spring Boot gradle plugin reference, I should be able to package a particular pattern of jars into a specific layer (for making better docker files). I'm confused about the pattern matching used in the documentation. Here's an…
PaulNUK
  • 4,774
  • 2
  • 30
  • 58
2
votes
1 answer

Why does h2 changing of username and password dont work? Spring boot app

I have gradle spring boot app with h2 database in eclipse.When i try to login to console only default username:sa and empty password works even though i added config in application properties.Why? My application.properties…
Nikola Srdoč
  • 311
  • 4
  • 14
2
votes
1 answer

proguard+springboot plugin -> no classes in jar

I have to obfuscate lib and application. Lib - simple lib with two classes. Obfuscation done well. Application(with obfuscated lib in dependencies) builded with springboot plugin, works well. When I try to obfuscate application jar I have got jar…
Alexandr
  • 71
  • 4
2
votes
2 answers

Swagger with Spring webflux dependency building issue

I work with kotlin gradle project. When i try to integrate swagger, it shows Could not resolve io.springfox:springfox-swagger2:3.0.0-SNAPSHOT. Possible solution: - Declare repository providing the artifact, see the documentation at error for…
2
votes
0 answers

SpringBoot gradle plugin complains "Unresolved reference: providedRuntime"

I'm following the latest SpringBoot gradle plugin reference in order to setup a SpringBoot project that can build a uberjar. Below is the full content of build.gradle.kts: plugins { java application id("org.springframework.boot") version…
2
votes
1 answer

Reference spring-boot assembled jar in gradle ssh plugin

I would like to create a custom task in gradle, that will upload assembled jar to a remote server. My best working result is doLast { ssh.run { def jarFile = "${jar.baseName}-${version}.jar" session(remotes.role('qa')) { …
2
votes
1 answer

How to hide the _embedded entity field in Spring Data Rest

I run an SDR application based on the Spring Boot Gradle Plugin. I recently upgraded from 2.1.9.RELEASE to 2.2.0.RELEASE. Without being 100% sure that this was the very reason, SDR now seems to expose an additional _embedded field for every…
aboger
  • 2,214
  • 6
  • 33
  • 47