2018-02-08 15:01:19 +01:00
|
|
|
|
|
|
|
dependencies {
|
2022-11-25 10:24:46 +01:00
|
|
|
api 'com.google.guava:guava'
|
|
|
|
api 'commons-io:commons-io'
|
|
|
|
api 'commons-lang:commons-lang'
|
|
|
|
api 'org.apache.commons:commons-csv'
|
2022-04-08 20:11:59 +02:00
|
|
|
|
2022-11-25 10:24:46 +01:00
|
|
|
compileOnlyApi 'com.google.code.findbugs:jsr305'
|
|
|
|
compileOnlyApi 'org.sonarsource.api.plugin:sonar-plugin-api'
|
2018-02-08 15:01:19 +01:00
|
|
|
|
2022-11-25 10:24:46 +01:00
|
|
|
testImplementation 'junit:junit'
|
|
|
|
testImplementation 'org.assertj:assertj-core'
|
|
|
|
testImplementation 'org.mockito:mockito-core'
|
2023-04-04 10:20:33 +02:00
|
|
|
testImplementation 'org.sonarsource.api.plugin:sonar-plugin-api-test-fixtures'
|
2022-11-25 10:24:46 +01:00
|
|
|
testImplementation project(':sonar-plugin-api-impl')
|
2018-02-08 15:01:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes(
|
|
|
|
'Plugin-Key': 'xoo',
|
|
|
|
'Plugin-Version': project.version,
|
|
|
|
'Plugin-Class': 'org.sonar.xoo.XooPlugin',
|
|
|
|
'Plugin-ChildFirstClassLoader': 'false',
|
2023-01-23 17:33:38 +01:00
|
|
|
'Sonar-Version': project.pluginApiVersion,
|
2018-02-08 15:01:19 +01:00
|
|
|
'SonarLint-Supported': 'true',
|
|
|
|
'Plugin-Name': 'Xoo'
|
|
|
|
)
|
|
|
|
}
|
|
|
|
into('META-INF/lib') {
|
2022-11-30 09:28:46 +01:00
|
|
|
from configurations.runtimeClasspath
|
2018-02-08 15:01:19 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
artifactoryPublish.skip = false
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
mavenJava(MavenPublication) {
|
|
|
|
from components.java
|
2018-03-28 12:37:09 +02:00
|
|
|
if (release) {
|
|
|
|
artifact sourcesJar
|
|
|
|
artifact javadocJar
|
|
|
|
}
|
2018-02-08 15:01:19 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|