Could not find method org.mozilla:rhino:1.7R2() for arguments [build_1gh5ah50c852d3t8io63o8jnoc$_run_closure2_closure6@39fa487f] on root project ‘working’.
That syntax is for uploading artifacts, not for downloading them. Gradle’s dependency management doesn’t currently offer a way to download from an arbitrary URL. You could try to pretend that it’s an Ivy repo with custom artifact pattern. Or, if you don’t need the caching and such, just use the usual Java/Groovy means to download from an URL.
Other solutions are to store the artifact in your company/project repository, or to commit it to source control. Recent versions of Rhino are also available from Maven Central.
Actually, according to the thread you linked to there is such a syntax. Not sure if it’s an official feature though and whether it still works. Have never heard about if before.
Officially, Gradle’s dependency management doesn’t currently offer a way to download from an arbitrary URL. You could try to pretend that it’s an Ivy repo with custom artifact pattern. Or, if you don’t need the caching and such, just use the usual Java/Groovy means to download from an URL.
Other solutions are to store the artifact in your company/project repository, or to commit it to source control. Recent versions of Rhino are also available from Maven Central.
That said, the hack mentioned in the thread that you linked to might still work. What you are missing in your code is parens around ‘“org.mozilla:rhino:1.7R2”’.