Skip to content

Commit

Permalink
Fix webflux
Browse files Browse the repository at this point in the history
  • Loading branch information
nk2IsHere committed Aug 22, 2023
1 parent 5e8af73 commit d0d0be0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
6 changes: 2 additions & 4 deletions kofu-templating-thymeleaf/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@ dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")

implementation(project(":kofu"))
implementation(project(":kofu-webflux"))
implementation(project(":kofu-webmvc"))
implementation(project(":autoconfigure-adapter-web-reactive"))
implementation(project(":autoconfigure-adapter-web-servlet"))
implementation(project(":autoconfigure-adapter-thymeleaf"))

implementation("org.jetbrains.kotlin:kotlin-reflect")

implementation("org.springframework.boot:spring-boot-starter-thymeleaf")

testImplementation("org.junit.jupiter:junit-jupiter-api")
testImplementation("org.springframework:spring-test")
testImplementation("io.projectreactor:reactor-test")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ import org.springframework.boot.autoconfigure.thymeleaf.ThymeleafReactiveWebInit
import org.springframework.boot.autoconfigure.thymeleaf.ThymeleafServletWebInitializer
import org.springframework.context.support.GenericApplicationContext
import org.springframework.fu.kofu.AbstractDsl
import org.springframework.fu.kofu.webflux.WebFluxServerDsl
import org.springframework.fu.kofu.webmvc.WebMvcServerDsl

/**
* Kofu DSL for Thymeleaf template engine.
Expand Down
2 changes: 2 additions & 0 deletions kofu-webflux/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ dependencies {

testImplementation(project(":kofu-templating-mustache"))
testImplementation(project(":kofu-templating-thymeleaf"))

testImplementation("org.springframework.boot:spring-boot-starter-jetty")
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import org.springframework.test.web.reactive.server.expectBody
class ThymeleafDslTests {

@Test
fun `Create and request a Mustache view`() {
fun `Create and request a Thymeleaf view`() {
val app = reactiveWebApplication {
webFlux {
port = 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class WebFluxServerDslTests {
webFlux {
port = 0
router {
engine = tomcat()
engine = jetty()
GET("/foo") { noContent().build() }
}
}
Expand Down

0 comments on commit d0d0be0

Please sign in to comment.