Problem downloading reports.jar

Hi!

I’m trying to clean my project with the following instruction:

C:\Repos\project>gradlew clean

But I get the following error:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app-core'.
> Could not download reports-global.jar (com.haulmont.reports:reports-global:6.10.7)
   > Could not get resource 'https://repo.cuba-platform.com/content/groups/premium/com/haulmont/reports/reports-global/6.10.7/reports-global-6.10.7.jar'.
      > Could not HEAD 'https://repo.cuba-platform.com/content/groups/premium/com/haulmont/reports/reports-global/6.10.7/reports-global-6.10.7.jar'. Received status code 403 from server: Forbidden

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

* Get more help at https://help.gradle.org

BUILD FAILED in 2s

I have the gradle.properties file in the .gradle folder with my credentials. My license has not expired yet. The problem appeared when I tried to update my cuba version, but finally I reverted it to the 6.10.7 and now is not working. It was working few days ago. How can I fix it?

Thank you very much.

1 Like

Hi

Please provide repositories section of your build.gradle file. It should look like this:

repositories {
    maven {
        url 'https://repo.cuba-platform.com/content/groups/work'
        credentials {
            username(rootProject.hasProperty('repoUser') ? rootProject['repoUser'] : 'cuba')
            password(rootProject.hasProperty('repoPass') ? rootProject['repoPass'] : 'cuba123')
        }
    }

    maven {
        url 'https://repo.cuba-platform.com/content/groups/premium'
        credentials {
            username(rootProject.hasProperty('premiumRepoUser') ?
                    rootProject['premiumRepoUser'] : System.getenv('CUBA_PREMIUM_USER'))
            password(rootProject.hasProperty('premiumRepoPass') ?
                    rootProject['premiumRepoPass'] : System.getenv('CUBA_PREMIUM_PASSWORD'))
        }
    }
}

And the gradle.properties content, e.g:
premiumRepoUser=***
bintrayPremiumRepoUser=***@cuba-platform
premiumRepoPass=***

Hi,

This is our repositories section:

repositories {

    maven {
        url 'https://repo.cuba-platform.com/content/groups/work'
        credentials {
            username(rootProject.hasProperty('repoUser') ? rootProject['repoUser'] : 'cuba')
            password(rootProject.hasProperty('repoPass') ? rootProject['repoPass'] : 'cuba123')
        }
    }
    maven {
        url 'https://repo.cuba-platform.com/content/groups/premium'
        credentials {
            username(rootProject.hasProperty('premiumRepoUser') ? rootProject['premiumRepoUser'] : System.getenv('CUBA_PREMIUM_USER'))
            password(rootProject.hasProperty('premiumRepoPass') ? rootProject['premiumRepoPass'] : System.getenv('CUBA_PREMIUM_PASSWORD'))
        }
    }
}

And the gradle.properties file is exactly as you describe, except that we don’t use Bintray repositories.

Hi,

Probably there is some problem with your license.

Please email us at info@cuba-platform.com and provide your subscription key. We’ll check it on our side.

Hi,

I’ve send an email with the information.

Thank you.