diff options
author | Zipeng WU <zipeng.wu@sonarsource.com> | 2022-11-25 10:24:46 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-12-01 20:03:11 +0000 |
commit | e8e5f48ffdf812693d80299bae1e2e456c79236b (patch) | |
tree | a3a54424cafbcf0a156545d9fcb09399069515ee /sonar-scanner-protocol | |
parent | e4724e3ff8b382855cfad2ab76234d8df1b8ef87 (diff) | |
download | sonarqube-e8e5f48ffdf812693d80299bae1e2e456c79236b.tar.gz sonarqube-e8e5f48ffdf812693d80299bae1e2e456c79236b.zip |
SONAR-15595 Replace Gradle deprecated dependency scopes
Diffstat (limited to 'sonar-scanner-protocol')
-rw-r--r-- | sonar-scanner-protocol/build.gradle | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sonar-scanner-protocol/build.gradle b/sonar-scanner-protocol/build.gradle index aa7252a787a..3e45afc6882 100644 --- a/sonar-scanner-protocol/build.gradle +++ b/sonar-scanner-protocol/build.gradle @@ -7,17 +7,17 @@ sonar { dependencies { // please keep the list ordered - compile 'com.google.code.gson:gson' - compile 'com.google.protobuf:protobuf-java' - compile 'commons-io:commons-io' - compile 'commons-lang:commons-lang' - compile project(':sonar-core') + api 'com.google.code.gson:gson' + api 'com.google.protobuf:protobuf-java' + api 'commons-io:commons-io' + api 'commons-lang:commons-lang' + api project(':sonar-core') - compileOnly 'com.google.code.findbugs:jsr305' + compileOnlyApi 'com.google.code.findbugs:jsr305' - testCompile 'com.google.guava:guava' - testCompile 'junit:junit' - testCompile 'org.assertj:assertj-core' + testImplementation 'com.google.guava:guava' + testImplementation 'junit:junit' + testImplementation 'org.assertj:assertj-core' } //create a single Jar with all dependencies @@ -26,7 +26,7 @@ task fatJar(type: Jar) { attributes 'Main-Class': 'org.sonar.scanner.protocol.viewer.ScannerReportViewerApp' } archiveBaseName = project.name + '-all' - from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } + from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } } with jar duplicatesStrategy = DuplicatesStrategy.EXCLUDE } |