Exclude of non-related class in gradle showing coverage in sonar dashboard

I am currently using community edition of sonar Version 7.9.1. Added the below piece of code in my build.gradle for the exclusion of some of classes, but sonar dashboard of this particular project shows coverage for the below class file. Somehow my build.gradle is not honoring the below piece of code

scenario 1

sonarqube {
properties {
property “sonar.exclusions”, “com.sample.scenario.repository.*”
}
}

scenario 2

sonarqube {
properties {
property ‘sonar.coverage.exclusions’, “/com/sample/scenario/repository/
}
}

Any update on my query ?