Gradle - Generate eclipse configuration files

I have an AngularJS project. We want to create the eclipse configuration files(.project,.classpath etc. ) so that eclipse can recognize it as a dynamic web project. I have the JS source file. How is this done ? We would like check-in the eclipse configuration files to Git. Users would use these configuration files to load the dynamic war into eclipse.

I think what we want is a dynamic web project nature which has references to AngularJS code ?

I am getting these two. My goal is to create a basic web.xml and a war so that my AngularJS code runs in the browser.

<?xml version=“1.0” encoding=“UTF-8”?>

<?xml version=“1.0” encoding=“UTF-8”?>