Commit f7cd7acb authored by Ubbo Veentjer's avatar Ubbo Veentjer
Browse files

include spring-devtools and doc howto use them

parent 87055055
Pipeline #135910 passed with stages
in 8 minutes and 52 seconds
......@@ -38,3 +38,14 @@ Running the tests requires internet access and the services at https://textgridl
Test output is written to `build/reports/tests/test/index.html`
## Development Server / Continuous Build
The gradle build file has the spring-boot-devtools included, which (allow live reloading when classpath changes)[https://docs.spring.io/spring-boot/docs/current/reference/html/howto.html#howto-hotswapping]. This works fine when web resources like jsp files or the classpath change. It does not include automatic recompilation when Java code changes. This is what you IDE may do, or gradle with its (continuous build feature)[https://blog.gradle.org/introducing-continuous-build].
For the latter i recommend to open two terminal windows too run two commands parallel. One for the continuous build:
./gradlew classes -t
and one for running the spring-boot dev server:
./gradlew bootRun
......@@ -28,6 +28,7 @@ dependencies {
implementation 'com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider'
implementation 'com.atlassian.commonmark:commonmark:0.14.0'
implementation 'info.textgrid.middleware.clients:textgrid-clients:3.4.3'
developmentOnly("org.springframework.boot:spring-boot-devtools")
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment