Skip to content

Commit

Permalink
support Spring WebFlux in Server Type detecting logic
Browse files Browse the repository at this point in the history
  • Loading branch information
LiYing2010 committed May 20, 2024
1 parent 336c5c3 commit d494f43
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 d494f43

Please sign in to comment.