ClassNotFoundException: org.springframework.boot.web.servlet.ServletContextInitializer error in grails app

Hi,

I am trying to use compile(‘org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-webapp:3.2.0’) inside grails-app. And I am getting following exception on starting the app:
java.lang.ClassNotFoundException: org.springframework.boot.web.servlet.ServletContextInitializer

Following are my build.gradle entries:
dependencyManagement {
imports {
mavenBom “org.camunda.bpm:camunda-bom:7.10.0”
}
}
dependencies {
compile(‘org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-webapp:3.2.0’)
}

Please provide the helpful information.
Thanks.

Spring boot version must be 2.1.1 Release.

Check this version compatibility matrix:

https://docs.camunda.org/manual/latest/user-guide/spring-boot-integration/version-compatibility/