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

I/O error on GET request

I am using gradle for api and got this error : Exception in thread "main" org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://localhost:8080/SpringBootRestApi/api/user/":Connection refused: connect; nested…
Arpit Mahajan
  • 81
  • 1
  • 1
  • 5
4
votes
1 answer

How to generate application version using Spring Boot, Gradle, Semantic Versioning and Jenkins

I have a Spring Boot web application with actuator enabled. When I open /info, I see below { "git": { "commit": { "time": "2016-08-31T17:53:28.000+0000", "id": "0a52a2f" }, "branch":…
4
votes
0 answers

Springboot /gradle/tomcat: Process java.exe finished with non-zero exit value 1

I want to create an executable jar-file with gradle & springboot. I have already cleaned gradle, reinstalled java and killed all the java processes. Sometimes the process also stopps at 80% and I am not able to access the command window anymore. I…
Cary
  • 51
  • 1
  • 5
3
votes
0 answers

how to build OCI images with additional packages using Spring Boot buildpack

I am using Spring Boot with Gradle plugin https://docs.spring.io/spring-boot/docs/current/gradle-plugin/reference/htmlsingle/#build-image to build OCI images. This works fine for basic use case (web application packaged as jar inside image). I more…
Bartosz Bilicki
  • 12,599
  • 13
  • 71
  • 113
3
votes
1 answer

Unable to build image using gradle bootBuildImage in offline environment

I am trying to build image on offline environment using paketobuildpacks/builder:base and paketobuildpacks/run:base-cnb image. I am running a demo spring-boot project that I created via http://start.spring.io/ So this is the command I'm using to…
user1778855
  • 659
  • 1
  • 11
  • 29
3
votes
3 answers

Spring Boot Gradle bootBuildImage task with private repo

I'm trying to set up a Spring Boot / Gradle project to use bootBuildImage to build my Docker image, but am hitting a snag. We have limited external network access on our build servers; we use a private nexus repository. When I try to run the…
Eric
  • 5,842
  • 7
  • 42
  • 71
3
votes
3 answers

Spring boot not adding spring-boot-starter-data-jpa

When trying to add spring-boot-starter-data-jpa to my project through gradle, it just doesn't do it. The @Entity tag doesn't work and the jar doesn't appear in the project and external dependencies folder. There's no error unless I put in the…
3
votes
2 answers

Spring Boot Gradle multi-project build not seeing internal dependencies during tests

I'm having a problem on a larger multi-project build that I was migrating from Gradle 4 to 5, and replicated the issue on a smaller, more concise build to demonstrate the issue. I have 2 projects in the build. One is a dependency (basic library)…
3
votes
0 answers

Repackaging with Spring-boot-gradle-plugin v2.x

The spring-boot-maven-plugin has a goal that allows you to repackage an existing jar. This helped me in repackaging my obfuscated jar: com.github.wvengen
3
votes
1 answer

Failed to execute junit5 tests with dependency management with spring boot gradle plugin

In my project based on gradle and kotlin I have some sub module. Build configugration for it module (build.gradle.kts): plugins { java kotlin("jvm") id("org.springframework.boot") version "2.1.5.RELEASE" …
3
votes
1 answer

Set active spring profile with bootWar

I'm trying to set the active spring profile when building a WAR file. I'm building the WAR file with gradle bootWar I managed to find a solution that works for gradle bootRun -Pprofiles=prod bootRun { if (project.hasProperty('profiles')) { …
Snæbjørn
  • 10,322
  • 14
  • 65
  • 124
3
votes
2 answers

How to add src/dist to spring boot distribution

It very much looks like spring boots gradle plugin is not packaging the contents of src/dist like application plugin does. How can I add the contents of src/dist add to my spring boot distribution zip and tar? plugins { id 'java' id…
KIC
  • 5,887
  • 7
  • 58
  • 98
3
votes
1 answer

Spring Boot Gradle bootRun task default classpath and current working directory

I am going to test external config for application. What is default classpath and default working directory for Spring Boot Gradle bootRun task? I didn't get in…
gavenkoa
  • 45,285
  • 19
  • 251
  • 303
3
votes
1 answer

Running Spring Boot Application on WebSphere 9

I've a Spring Boot Application with main class: @SpringBootApplication public class MyApplication extends SpringBootServletInitializer{ public static void main(String[] args) { SpringApplication.run(MyApplication .class, args); } …
3
votes
0 answers

EnableAutoConfiguration not working after moving from Spring Boot 1.3.6 to 1.4.0

I have a web service app which I deploy in JBoss. After upgrading to 1.4.0 I am getting an error about the new class ProjectInfoAutoConfiguration: 21:25:32,965 ERROR [org.springframework.web.context.ContextLoader] (ServerService Thread Pool -- 71)…
1 2
3
13 14