Questions tagged [bootrun]
24 questions
6
votes
3 answers
How to debug bootRun with VScode
I'm trying to debug a Spring bootRun application via VSCode. I'm not sure what the proper launch configuration is.
This is how I launch the program in a terminal
./gradlew bootRun -Dspring.profiles.active=local
These are the current configurations…

Sean
- 115
- 1
- 2
- 10
5
votes
3 answers
Execution failed for task ':bootRun'
i got this app from company's repo, and when i try to bootRun my app in Grails 3.1.3, i got this issue. The full stacktrace is below.
What went wrong:
Execution failed for task ':bootRun'.
A problem occurred starting process 'command…

Hadi Nugraha Pratama
- 53
- 1
- 1
- 5
5
votes
1 answer
Gradle bootRun failing?
I am having a very strange problem. I'm using Gradle to build a Java Spring application. When I bootRun my application, everything works fine; the service is up, I can call the endpoints, etc. However, when I stop my application in IntelliJ, I…

Ertai87
- 1,156
- 1
- 15
- 26
3
votes
0 answers
Unable to get gradle.properties when running bootRun through Docker
I am trying to use a local gradle.properties file in gradle.build for my spring boot application. When running bootrun from gradle.properties, the application works as it should, but when running bootRun from a docker file i get this error:
#11…

blend
- 59
- 2
2
votes
1 answer
Is there a way to pass environment variables to gradle bootRun config
I am trying to run a very simple Spring Boot application with PostGreSQL, which has the application.properties defined as…

Prabal Rakshit
- 417
- 1
- 6
- 16
2
votes
1 answer
cron/ fcron bootrun option: how to use?
I have a well working fcron on my WSL Ubuntu 18.04. however I could not get the bootrun option to take effect:
&bootrun 0 * * * * echo "make a log entry $(date)" >> ~/myfiles/fcron/testlog.log
according to the fcron documentation the bootrun…

Dr-Nuke
- 368
- 3
- 11
2
votes
1 answer
Execution failed for task ':bootRun'. > Process 'command 'C:\Program Files\Java\jdk-9.0.4\bin\java.exe'' finished with non-zero exit value 1
I have been looking everywhere how to solve this problem. I have found similar questions, and have tried everything, but nothing has helped. Reinstalling Java and gradle didn't help. Here the stacktrace of the error:
Task :bootRun
. ____ …

Antonio De la Torre
- 33
- 1
- 4
2
votes
1 answer
How to run a Grails 3 app locally with https using gradle bootRun
We have a complicated, multi-module project that for various reasons must be run with 'gradle bootRun' and not 'grails run-app'. With 'grails run-app' it is easy to run in an https environment locally by using 'grails run-app -https', but this does…

Peter
- 29,498
- 21
- 89
- 122
1
vote
1 answer
Spring Gradle Project
I working in spring project, I just got the project from my PM and when the project try to run got this error
Main class name has not been configured and it could not be resolved
The project is using more than one environment that using…

edhi.uchiha
- 366
- 2
- 9
1
vote
1 answer
SpringBoot gradle bootRun now instantly fails without any error displayed despite working fine previously
So despite working fine previously when I try to execute my SpringBoot web application it instantly fails without printing any kind of exception. I have no idea what could have happened as I only made changes to some code adding comments and…

devo9191
- 219
- 3
- 13
1
vote
1 answer
Low performance in springboot application (kotlin, gradle) with bootRun and without isOptimizedLaunch = false
When I run my function in junit test i have time about 1000 faster then with bootRun.
When I set in build.gradle.kts
tasks.getByName("bootRun") {
isOptimizedLaunch = false
}
time is equal then…

ptrushin
- 21
- 2
1
vote
0 answers
How to run junit test case after bootRun (server startup) using gradle
In my spring boot application I have junit test case. I implemented with application listener which will do certain task after server start up. Now I need to run the Junit test case after the bootRun. Basically the application runs like this., I am…

ArockiaRaj
- 588
- 4
- 17
1
vote
1 answer
Nomin and Spring Boot application: recursive mapping rule a = b causes infinite loop
As I had already few issues with combination Nomin, Eclipse and Groovy (see link1 and link2), I am again struggling with it.
My application works with JUnit Tests, both in Console via Gradle and Eclipse. But now it doesn't want to work when…

Michael Hegner
- 5,555
- 9
- 38
- 64
1
vote
2 answers
How to run additional task at the end of gradle bootRun
I have server application that I run using gradle bootRun.
I also have script runUpdate.sh that I need to run from command line of terminal after application is started.
I created gradle task that run this script:
task runUpdate(type: Exec) {
…

Jacob
- 1,135
- 5
- 14
- 29
1
vote
1 answer
grails bootrun hangs before starting up internal tomcat
The project has worked fine but suddenly it hangs on startup without any error.
Run-App --verbose --stacktrace give this print:
grails> run-app --verbose --stacktrace
| Running application...
> Configuring > 0/1 projects > root project > Resolving…

larand
- 773
- 1
- 9
- 26