diff --git a/spring-webmvc/spring-webmvc.gradle b/spring-webmvc/spring-webmvc.gradle index 194278ad7c07..3e4d27ad63e5 100644 --- a/spring-webmvc/spring-webmvc.gradle +++ b/spring-webmvc/spring-webmvc.gradle @@ -1,3 +1,7 @@ +plugins { + id 'org.sonarqube' version '7.4.0.8496' +} + description = "Spring Web MVC" apply plugin: "kotlin" @@ -82,3 +86,13 @@ dependencies { testRuntimeOnly("org.python:jython-standalone") testRuntimeOnly("org.webjars:momentjs:2.29.4") } + +// This module is analyzed as its own SonarQube project. +sonar { + properties { + property 'sonar.projectKey', 'org.springframework:spring-webmvc' + property 'sonar.projectName', 'Spring Web MVC' + property 'sonar.projectVersion', project.version + property 'sonar.sourceEncoding', 'UTF-8' + } +}