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

Gradle GradleBuild tasks not run in parallel

I have these tasks in a multi-project build: task runA(type: GradleBuild) { tasks = [ ':a:x:bootRun', ':a:y:bootRun', ':c:x:bootRun' ] } task runB(type: GradleBuild) { tasks = [ ':b:x:bootRun', …
Johannes Rudolph
  • 35,298
  • 14
  • 114
  • 172
2
votes
1 answer

How to generate 2 jars from one gradle project with different dependencies using sring boot plugin 2.0.x

I'm trying to migrate my project to latest versions Spring and Spring Boot. Everything was going smothly till I encounter this problem. One of our project generates two versions of final Jar, one plain runnable with minimum dependencies, and another…
user902383
  • 8,420
  • 8
  • 43
  • 63
2
votes
1 answer

Modifying gradle task in a subproject

So, let's say I have this kind of project structure: Root projA projA1-api projA2-core projA3-main projB projB1-api projB2-core projB3-main projC projC1-api projC2-core …
2
votes
2 answers

Inject Gradle properties into Spring Boot application.yml, not working in IntelliJ IDEA

I've managed to inject the Gradle proj.ver into application.yml and after that injected it into service application. My application.yml looks like this: project: version: ${version} But it works only if I started the app from cli with: gradle…
2
votes
1 answer

Spring Boot causes WebAppContext error when deployed to GAE

I'm building out a REST API for a personal project, using Spring Boot to do so, and deploying onto Google App Engine. The project compiles and runs locally with no issues, and I can deploy to GAE with no build errors. However, when I navigate to my…
2
votes
1 answer

Spring boot and Gradle multi-modules project, failed to load dependencies correctly

Basically I have a spring boot project build with Gradle. The project has a root project that contains another 4 sub-modules. The root project settings.gradle looks like this: rootProject.name = 'proj' include 'proj-app' include…
brebDev
  • 774
  • 10
  • 27
2
votes
0 answers

Pass JVM arguments into an executable jar via spring boot gradle plugin

I want to pass JVM arguments into a bash script part of the executable jar so that the jar starts with specific configuration. Is there an easy way to do so via gradle spring boot plugin?
yuranos
  • 8,799
  • 9
  • 56
  • 65
2
votes
2 answers

How to run external war file with embedded tomcat of spring boot with gradle?

I am trying to deploy external war file into embedded tomcat of spring boot.I added gradle dependencies in the format of .war file and i want run this war with by spring boot app , but not running please anyone can help me out.
Angad Bansode
  • 825
  • 6
  • 15
2
votes
1 answer

How to add JNI hooks to one jar generated by Spring Boot

I am using Spring Boot gradle plugin (org.springframework.boot) to generate the "one" jar. It works well when I run java -jar app.jar - does exactly what's expected. However, this application should be running as a daemon using Apache Commons Daemon…
2
votes
1 answer

config auth for spring-mongo-data

Environment spring-boot 1.3.2 spring-mongo 0.8.0 build my spring-boot microservice with gradle. Problem one of mongo database enable the auth,so i configure these arguments in application.yml spring: data: mongo: …
2
votes
1 answer

How to configure spring-boot repackage with gradle-script-kotlin

With regular gradle I would configure a main class like so: bootRepackage { mainClass = 'demo.Application' } With gradle-script-kotlin, this does not work. I think I need to somehow use the Project.configure inline function, but I have tried a…
Magnus
  • 7,952
  • 2
  • 26
  • 52
2
votes
1 answer

@Retryable is not working on Spring-boot-gradle-plugin

I'm trying to add retry logic in my (spring boot gradle plugin) application by adding @Retryable. What i have done so far: Added latest starter aop in class path: classpath(group: 'org.springframework.boot', name: 'spring-boot-starter-aop', version:…
Minh
  • 424
  • 3
  • 12
2
votes
1 answer

Adding Spring actuator plugin to build.gradle throws BeanCreationException -EndpointAutoConfiguration$InfoPropertiesConfiguration

I have a working Spring boot micro service.Application was starting up properly.I wanted to implement health check in my microservice and added spring actuator dependency to build.gradle. Now, application is not starting up after adding the…
Pandu
  • 21
  • 1
  • 3
2
votes
1 answer

Multi-modules project with Spring Boot Gradle plugin

A Multi-module project has modules with the following dependency: web->core->persistence I added spring-boot-gradle-plugin to web module: buildscript { repositories { jcenter() } dependencies { …
2
votes
1 answer

Spring boot multiple gradle projects dependcy mangament -> Cannot change dependencies of configuration

I have few projects each with structure something like that projectA | - projectA-module1 | - projectA-module2 | - projectA-service project-service -> this module has applied spring boot plugin, it is deployable all other modules are dependencies…
John
  • 1,350
  • 5
  • 27
  • 49