Could not build war due to fail download dependency

Hi All,

I try build war by executing ./gradlew buildWar. But turn out it fail due to fail download dependecy (see my screenshot). Neet help here to solve this issue
Screenshot%202020-03-18_14-19-26-196

hi @knstvk, could you help me regarding this issue, or is there another way to build separate war without executing gradlew command, Thanks

Hi all,
Whats happen with dependency links
https://repo.cuba-platform.com/content/groups/premium/com/haulmont/charts/charts-web-toolkit/6.10.15/charts-web-toolkit-6.10.15-web.zip

I suppose can download it, since I already buy perpetual license from cuba

Hi,

Please ensure that your environment is configured correctly when using premium add-ons:

https://doc.cuba-platform.com/manual-7.2/access_to_repo.html#access_to_premium_repo

I’m using cuba 6.10.15 , I remember with current config, I can build war smoothly last year

this is my cuba configuration, I’m using cuba version 6.10.xScreenshot%202020-03-18_18-51-49-094

Hi @arifian.prahata
Could you confirm that you have credentials in ~/.gradle/gradle.properties as explained in the docs, for example

premiumRepoUser=111111222222
premiumRepoPass=abcdefabcdef

Oke, it turnout I must build my project using cuba studio first, thanks for support all @knstvk & @AlexBudarov

Excuse me, but CUBA Studio doesn’t do any magic.
Although it does put premium credentials automatically to the gradle.properties based on your subscription key, when you add new premium repository or premium add-on to the project:
https://youtrack.cuba-platform.com/issue/STUDIO-6923

So just building the project in Studio shouldn’t be the solution to the problem.

According to your build.gradle script, you either have repository credentials in the ~/.gradle/gradle.properties file, or in the environment variables.

Can you please check your environment? It may help other developers in the future who are confused with similar build errors.