title: Declare dependency to war file in Gradle
body: <p>Based on the gradle <a href="https://docs.gradle.org/current/userguide/dependency_management.html#sub:file_dependencies" rel="nofollow">docs</a>, to define external jars means adding to <code>build.gradle</code> the following snippet (considering you have {project_root}/libs/foo.jar) in place:</p>
  
  <pre><code>dependencies {
    runtime files('libs/foo.jar')
  }
  </code></pre>
  
  <p>However, using the same dependency declaration for <code>*.war</code> files doesn't  work. Is this even possible? The project I'm trying to depend on builds to a war file.</p>