'sonar.scanner.force-deprecated-java-version-grace-period' to 'true'

I see this message in our failed build console output.
can some please tell me, where do i set this parameter.

HI - I think this can be passed with your gradle command.
From what I have gathered info, this is just a temporary solution. Once they switch to Java 11, then it won’t be needed? Do you have any information regarding this?

Hi @knitin
Yes its just a temporary solution and it will work until 15th February.

Thanks @js-techie Do you know what is the permanent solution?

Yes… :slightly_smiling_face:

Hello @knitin,

The permanent solution is to move the analysis to Java 11 (the build can still be using an older version, we only require the analysis to use at least Java 11). If you are already using at least Java 11 then you don’t need the parameter anymore.

You can find more information on the migration in our documentation.

Hi @Martin_Bednorz - Thanks for responding. We did that already. However, we were running into dependency issues. e.g. in this post.

I was just curious to know if sonarqube recompiles the dependencies? We resolved it by removing the
sourceCompatibility = 1.8
targetCompatibility = 1.8
so was wondering if that’s common?

Thanks for your help.

Hello @knitin ,

Yes, we require the compilation step for our analysis for Java. I provided an answer in your other thread if you want to use Java 8 for the build.

Is everything working for you now?