mirror of
https://github.com/ethauvin/rife2-hello.git
synced 2025-04-25 15:37:10 -07:00
Fix reloading of templates
This commit fixes how templates were reloaded. There was a bug in the plugin which used the output of the precompiled templates for development only dependencies, instead of the templates directory. This caused the templates to be always compiled and added as a resource on runtime classpath, when we only wanted the raw templates. This commit also adds functional tests to the build logic, which can be executed by running `./gradlew build-logic:test`.
This commit is contained in:
parent
65e579966c
commit
c9f286132c
18 changed files with 542 additions and 11 deletions
|
@ -33,16 +33,14 @@ repositories {
|
|||
rife2 {
|
||||
version.set("1.4.0")
|
||||
useAgent.set(true)
|
||||
precompiledTemplateTypes.addAll(HTML)
|
||||
}
|
||||
|
||||
dependencies {
|
||||
runtimeOnly("org.eclipse.jetty:jetty-server:11.0.13")
|
||||
runtimeOnly("org.eclipse.jetty:jetty-servlet:11.0.13")
|
||||
runtimeOnly("org.slf4j:slf4j-simple:2.0.5")
|
||||
runtimeOnly(libs.bundles.jetty)
|
||||
runtimeOnly(libs.slf4j.simple)
|
||||
|
||||
testImplementation("org.jsoup:jsoup:1.15.3")
|
||||
testImplementation("org.junit.jupiter:junit-jupiter:5.9.1")
|
||||
testImplementation(libs.jsoup)
|
||||
testImplementation(libs.junit.jupiter)
|
||||
}
|
||||
|
||||
tasks {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue