diff --git a/spring-context/spring-context.gradle b/spring-context/spring-context.gradle index f0f6a290b6a2..ae6a7c7ee9e7 100644 --- a/spring-context/spring-context.gradle +++ b/spring-context/spring-context.gradle @@ -1,5 +1,6 @@ plugins { id 'org.springframework.build.runtimehints-agent' + id 'org.sonarqube' version '7.4.0.8496' } description = "Spring Context" @@ -57,3 +58,13 @@ dependencies { testRuntimeOnly("org.glassfish.external:opendmk_jmxremote_optional_jar") testRuntimeOnly("org.javamoney:moneta") } + +// This module is analyzed as its own SonarQube project. +sonar { + properties { + property 'sonar.projectKey', 'org.springframework:spring-context' + property 'sonar.projectName', 'Spring Context' + property 'sonar.projectVersion', project.version + property 'sonar.sourceEncoding', 'UTF-8' + } +}