Skip to content

Commit

Permalink
Merge pull request #528 from LiYing2010/add_webflux_support
Browse files Browse the repository at this point in the history
support Spring WebFlux in Server Type detecting logic
  • Loading branch information
rjaros authored May 20, 2024
2 parents 336c5c3 + d494f43 commit 9dad499
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,12 @@ abstract class KVisionPlugin @Inject constructor(
get() = named("jsMain")

private fun getServerType(project: Project): KVServerType? {
if (project.configurations["jvmMainImplementation"].dependencies.any { it.name == "spring-boot-starter-web" }) {
val springbootDependencies = listOf(
"spring-boot-starter-web", // for Spring Web MVC
"spring-boot-starter-webflux", // for Spring WebFlux
)
val jvmMainImplementationDependencies = project.configurations["jvmMainImplementation"].dependencies
if (jvmMainImplementationDependencies.any { it.name in springbootDependencies }) {
return KVServerType.SPRINGBOOT
}
val kvisionServerDependency = project.configurations["commonMainApi"].dependencies.map {
Expand Down

0 comments on commit 9dad499

Please sign in to comment.