Skip to content

Gradle fails to apply JFrog plugin #328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gminog opened this issue Mar 14, 2020 · 0 comments
Open

Gradle fails to apply JFrog plugin #328

gminog opened this issue Mar 14, 2020 · 0 comments

Comments

@gminog
Copy link

gminog commented Mar 14, 2020

Since the introduction of JFrog Gradle plugin v4.14.1 (see: https://plugins.gradle.org/plugin/com.jfrog.artifactory/4.14.1), the following error is being reported upon the execution of the command gradlew --refresh-dependencies --scan:

A problem occurred evaluating root project 'some-project-name-goes-here'.
> Failed to apply plugin [id 'com.jfrog.artifactory']
   > Cannot invoke method status() on null object

The error is due to the fact that the terms of service have not been agreed:

The Gradle Terms of Service have not been agreed to.

To agree to the Gradle Terms of Service, include the following in your root project's configuration:
buildScan { termsOfServiceUrl = 'https://gradle.com/terms-of-service'; termsOfServiceAgree = 'yes' }

Nevertheless, if we do use the suggested directive
buildScan { termsOfServiceUrl = 'https://gradle.com/terms-of-service'; termsOfServiceAgree = 'yes' }
and re-run the aforementioned command, we get the same error along with a link for registration to the service via an e-mail.

Is there a way to work around this or do we have to keep using versions prior to 4.14.1 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant