Hello @Laurynas, welcome to the Sonar Community.
Usually, the Sonar Scanner Gradle plugin is able to detect sources automatically, so there should be no need for property(“sonar.sources”, “${project.projectDir}/src/main/kotlin”) . Could you please run the scan without setting the property? Does the issue still happen?
A second option is to replace property(“sonar.sources”, “${project.projectDir}/src/main/kotlin”) with property("sonar.sources", listOf("${ project.projectDir }/src/main/kotlin")).
In case the problem is not solved, can you provide us with a small reproducer? A small project that we can easily run on our side to reproduce this issue.
Cheers,
Angelo