aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/build.gradle
diff options
context:
space:
mode:
authorKengo TODA <skypencil@gmail.com>2021-09-30 19:07:41 +0800
committersonartech <sonartech@sonarsource.com>2021-10-08 20:03:10 +0000
commitac63a87fff684c5c4eb3b0a2562526e2643378be (patch)
treeff609812b352f1ab823ffae0881ee0acc21f38ca /sonar-plugin-api/build.gradle
parentd0b6b0f341c297ad06a96508d13597b00dd214a6 (diff)
downloadsonarqube-ac63a87fff684c5c4eb3b0a2562526e2643378be.tar.gz
sonarqube-ac63a87fff684c5c4eb3b0a2562526e2643378be.zip
SONAR-15470 Do not declare Gradle build dependencies using compile and runtime configurations
Diffstat (limited to 'sonar-plugin-api/build.gradle')
-rw-r--r--sonar-plugin-api/build.gradle7
1 files changed, 3 insertions, 4 deletions
diff --git a/sonar-plugin-api/build.gradle b/sonar-plugin-api/build.gradle
index 8cdf7778f70..6226e1a77a1 100644
--- a/sonar-plugin-api/build.gradle
+++ b/sonar-plugin-api/build.gradle
@@ -33,10 +33,9 @@ dependencies {
testCompile project(':sonar-plugin-api-impl')
}
-sourceSets {
+configurations {
// Make the compileOnly dependencies available when compiling/running tests
- test.compileClasspath += configurations.compileOnly + configurations.shadow
- test.runtimeClasspath += configurations.compileOnly + configurations.shadow
+ testImplementation.extendsFrom compileOnly
}
def on3Digits(version) {
@@ -54,7 +53,7 @@ processResources {
}
shadowJar {
- configurations = [project.configurations.default]
+ configurations = [project.configurations.runtimeClasspath]
minimize {
exclude(project(':sonar-check-api'))
}