From e8e5f48ffdf812693d80299bae1e2e456c79236b Mon Sep 17 00:00:00 2001 From: Zipeng WU Date: Fri, 25 Nov 2022 10:24:46 +0100 Subject: SONAR-15595 Replace Gradle deprecated dependency scopes --- plugins/sonar-education-plugin/build.gradle | 12 ++++++------ plugins/sonar-xoo-plugin/build.gradle | 22 +++++++++++----------- 2 files changed, 17 insertions(+), 17 deletions(-) (limited to 'plugins') diff --git a/plugins/sonar-education-plugin/build.gradle b/plugins/sonar-education-plugin/build.gradle index 71bad6499f1..e386ec90234 100644 --- a/plugins/sonar-education-plugin/build.gradle +++ b/plugins/sonar-education-plugin/build.gradle @@ -1,14 +1,14 @@ configurations { - testImplementation.extendsFrom(compileOnly) + testImplementation.extendsFrom(compileOnlyApi) } dependencies { - compileOnly 'org.sonarsource.api.plugin:sonar-plugin-api' + compileOnlyApi 'org.sonarsource.api.plugin:sonar-plugin-api' - testCompile 'junit:junit' - testCompile 'org.assertj:assertj-core' - testCompile 'org.mockito:mockito-core' - testCompile project(':sonar-plugin-api-impl') + testImplementation 'junit:junit' + testImplementation 'org.assertj:assertj-core' + testImplementation 'org.mockito:mockito-core' + testImplementation project(':sonar-plugin-api-impl') } jar { diff --git a/plugins/sonar-xoo-plugin/build.gradle b/plugins/sonar-xoo-plugin/build.gradle index f194b7d1786..2b00deaa50f 100644 --- a/plugins/sonar-xoo-plugin/build.gradle +++ b/plugins/sonar-xoo-plugin/build.gradle @@ -1,20 +1,20 @@ configurations { - testImplementation.extendsFrom(compileOnly) + testImplementation.extendsFrom(compileOnlyApi) } dependencies { - compile 'com.google.guava:guava' - compile 'commons-io:commons-io' - compile 'commons-lang:commons-lang' - compile 'org.apache.commons:commons-csv' + api 'com.google.guava:guava' + api 'commons-io:commons-io' + api 'commons-lang:commons-lang' + api 'org.apache.commons:commons-csv' - compileOnly 'com.google.code.findbugs:jsr305' - compileOnly 'org.sonarsource.api.plugin:sonar-plugin-api' + compileOnlyApi 'com.google.code.findbugs:jsr305' + compileOnlyApi 'org.sonarsource.api.plugin:sonar-plugin-api' - testCompile 'junit:junit' - testCompile 'org.assertj:assertj-core' - testCompile 'org.mockito:mockito-core' - testCompile project(':sonar-plugin-api-impl') + testImplementation 'junit:junit' + testImplementation 'org.assertj:assertj-core' + testImplementation 'org.mockito:mockito-core' + testImplementation project(':sonar-plugin-api-impl') } jar { -- cgit v1.2.3