Can't enable gradle dependency management in web application

I have a gradle web application, and developing in STS.

I found that there are “Web App librarories” and “Gradle Dependencies” under my project, both of them have the same collection of jar files.

And it throw error in the end related with jar libs are loaded twice.

Why does STS behaved like this? Bug?