aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws-generator
diff options
context:
space:
mode:
authorZipeng WU <zipeng.wu@sonarsource.com>2022-11-25 10:24:46 +0100
committersonartech <sonartech@sonarsource.com>2022-12-01 20:03:11 +0000
commite8e5f48ffdf812693d80299bae1e2e456c79236b (patch)
treea3a54424cafbcf0a156545d9fcb09399069515ee /sonar-ws-generator
parente4724e3ff8b382855cfad2ab76234d8df1b8ef87 (diff)
downloadsonarqube-e8e5f48ffdf812693d80299bae1e2e456c79236b.tar.gz
sonarqube-e8e5f48ffdf812693d80299bae1e2e456c79236b.zip
SONAR-15595 Replace Gradle deprecated dependency scopes
Diffstat (limited to 'sonar-ws-generator')
-rw-r--r--sonar-ws-generator/build.gradle18
1 files changed, 9 insertions, 9 deletions
diff --git a/sonar-ws-generator/build.gradle b/sonar-ws-generator/build.gradle
index d2b875cd52c..a57236825a8 100644
--- a/sonar-ws-generator/build.gradle
+++ b/sonar-ws-generator/build.gradle
@@ -5,17 +5,17 @@ sonar {
dependencies {
// please keep list ordered
- compile 'com.google.code.gson:gson'
- compile 'com.google.guava:guava'
- compile 'commons-io:commons-io'
+ api 'com.google.code.gson:gson'
+ api 'com.google.guava:guava'
+ api 'commons-io:commons-io'
// transitive dependency of Velocity that must be upgraded
// in order to fix a vulnerability
- compile 'commons-collections:commons-collections:3.2.2'
- compile 'org.apache.velocity:velocity:1.7'
- compile 'org.slf4j:log4j-over-slf4j'
- compile 'org.sonarsource.orchestrator:sonar-orchestrator'
+ api 'commons-collections:commons-collections:3.2.2'
+ api 'org.apache.velocity:velocity:1.7'
+ api 'org.slf4j:log4j-over-slf4j'
+ api 'org.sonarsource.orchestrator:sonar-orchestrator'
- compileOnly 'com.google.code.findbugs:jsr305'
+ compileOnlyApi 'com.google.code.findbugs:jsr305'
}
task fatJar(type: Jar) {
@@ -23,6 +23,6 @@ task fatJar(type: Jar) {
attributes 'Main-Class': 'org.sonarqube.wsgenerator.Generator'
}
archiveClassifier = 'jar-with-dependencies'
- from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
+ from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}