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.
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.
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.
I don’t know if this is the right thing to do, but it worked for me and I can continue.
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.