Gradle: Could not find method providedCompile() December 10, 2023 by Tarik providedCompile is shipped with war plugin. So you need to add: plugins { // ... id 'war' }