Hello @Konstantin_Pupkov ,
Welcome to the community!
Support for Java 17 is already available on SonarCloud and will be released with SonarQube 9.3. You can find more information about the announcement here.
There should be no difference in terms of setup from other Java & Gradle versions.