SDK6 EULA Acceptation via Gradle properties not working

Hello,

I’m following SDK6 user guide and having issue with the step SDK EULA Acceptation

I have created the file <USER_HOME>/.gradle/gradle.properties
and added the following line to it systemProp.accept-microej-sdk-eula-v3-1c=YES
but I’m still getting the following error:

An exception occurred applying plugin request [id: 'com.microej.gradle.addon-library', version: '1.3.1']
> Failed to apply plugin 'com.microej.gradle.addon-library'.
   > The MICROEJ SDK End-User License Agreement (EULA) must be accepted before it can start.
     The license terms for this product can be downloaded from 
     https://repository.microej.com/licenses/sdk/LAW-0011-LCS-MicroEJ_SDK-EULA-v3.1C.txt
     You can accept the EULA by setting the system property systemProp.accept-microej-sdk-eula-v3-1c=YES in a gradle.properties file
           - in your Gradle User Home folder (by default $USER_HOME/.gradle/),
           - or in the root folder of your project,
     or specifying the -Daccept-microej-sdk-eula-v3-1c=YES command line option, 
     or setting the ACCEPT_MICROEJ_SDK_EULA_V3_1C=YES environment variable.

I’m on Window 11. and here is my file

Thank you for you’re help.

Hello,

The file that you created is gradle.properties.txt instead of gradle.properties (as shown in the screenshot). Because of the txt extension, the file is not taken into account by Gradle.
Windows does automatically add the txt extension when creating a “New Text Document”: when the folder options are set to “Hide extensions for known file types”, the users can fall into this kind of issues.
To fix this issue, rename the file so that it uses the .properties extension. It can help to uncheck the “Hide extensions” setting as well.

Hope it helps

Thanks for pointing out the file extension. I hadn’t noticed my file was created with a .txt extension. It’s working now with the correct name.