Adding a local jar to a web app

Using files like this the artifacts can’t participate in Gradle’s dependency resolution. You can’t have transitive dependencies in poms and you also can’t associate javadocs and sources with the jars (to be linked in your IDE).

If you’re happy with these shortcomings then fileTree(...) is fine. Personally I’d use a maven directory layout instead, when you do move to a proper repository it will be simple