Error while upgrading from Gradle 0.9.2 to gradle 2.1

I am getting this error while executing gradle build file.

FAILURE: Build failed with an exception.

  • Where: Script ‘D:\RJS\rjs\RJS.gradle’ line: 1

  • What went wrong: A problem occurred evaluating script. > Could not find property ‘buildArtifacts’ on configuration ‘:rjs:default’.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.


Total time: 6.579 secs

Without having a look at the RJS.gradle file it’s hard to find the culprit. I think you’re using some gradle api, that has been removed. keep in mind that between gradle 0.9.2 and gradle 2.1 are more than 3 years of development. Where in your build script are you referencing buildArtifacts?

This issue has been resolved as this is a deprecated API i finally got the replacement.