Could not get unknown property 'premiumRepoUser' for root project

When I create a new project and download one of the plug-ins from the premium repository, I get the following message: “Could not get unknown property ‘premiumRepoUser’ for root project”, in my local development environment, having a valid and active license.

My environment:

Jmix version: 1.3.3
Jmix Studio plugin version: 1.3.7-213
IntelliJ version: IntelliJ IDEA 2022.2.2 (Ultimate Edition)

I remain attentive to your valuable help and guidance.

Regards,

Nelson F.

Any suggestions? I just reinstalled Studio and the problem persists. What other options do I have?

Did you add the required entries to your build.gradle?

Hi,

what do you mean by

Do you add the add-on from the Add-ons marketplace dialog and right after you close the Add-ons dialog window that you get that error?

The error you described usually appears when someone tries to run the project using command line on on CI. In that case the premiumRepoUser and premiumRepoPassword variables must be defined in the gradle.properties as described in the documentation.

That’s right, just after adding a premium addons the error is generated and does not let me continue. I have not been able to start a new project because of this error.

Please try to add the premiumRepoUser and premiumRepoPass properties to ~/.gradle/gradle.properties as described in the docs.

The gradle.properties file does have my license information. What I did to solve the problem was to add gradle.properties to my project with that I was able to download the addons.
image

I don’t know if this is the right thing to do, but it worked for me and I can continue.

Thanks to all

Regards,

Nelson F.

You can also set this properties in the gradle.properties file located in the .gradle subdirectory of your home folder. Then you won’t have the credentials in your project’s source code and they will take effect for all other projects.

In fact, Studio sets these properties in ~/.gradle/gradle.properties when you configure the subscription.

That is the strangest thing. In my home .gradle folder it is configured, but I don’t know why it doesn’t take it.
image

When I reinstalled studio it created the information again, but as I explained it does not take it.
gradle

Don’t you have a GRADLE_USER_HOME environment variable pointing to a different folder?
See Build Environment

No, my gradle pointed to the default path, validate if something exists in the environment variables and GRADLE_USER_HOME is not defined.