I am following the documentation for opening in Idea existing 6.10.5 project to migrate into 7.2
I cleaned .idea folder. Set up the premium repo credentials into gradle.properties
Tryed open gradle.build and bam I am getting this error:
Could not get resource 'https://repo.cuba-platform.com/content/groups/premium/com/haulmont/reports/reports-global/6.10.5/reports-global-6.10.5.pom'.
Meanwhile, when I do for example gradle buildWar from the commandline it is building OK.
How I can resolve this, because the new CUBA plugin not showing up either because of this failure.
The Studio 7+ does not pass your repository credentials to Gradle. If you need add-ons 6.x, please provide credentials in ~/.gradle/gradle.properties file as described in release notes.
I did everything as the release notes stated.
I made a ~/.gradle/gradle.properties file wtih the following content (the original credentials are changed here due security reasosns)
Sorry, I didn’t read your question carefully in the first place.
It means that Gradle has the credentials but Studio has not. So could you make sure that your subscription is used by Studio? You can check it in CUBA > Subscription Information window.
Also, what is your Studio plugin version?
I have the latest CUBA plugin and it is saying it is registered. The ~/.gradle/gradle.properties file contains the same credentials as plugin sees and the same as in this site is stated on my account page.
I downloaded the new 8.1 plugin and the new 8.1 standalone (intellij version) studio.
With the old studio app I upgraded to 6.10.7 version my app.
I have a following observations:
The old studio app is working and can access the premium repo
The standalone 8.1 studio CAN open the app, and build sync the gradle (I can see in the log when it downloading report global from the premium repo), build the app.
The 8.1 plugin still CANNOT open the app. When it access the premium repo it is failing with “Unauthorized” error.
That did the trick! It is works now.
I have a .gradle dir in the project home too (don’t know when and why the CUBA studio did it).
Can I delete this?