diff options
Diffstat (limited to 'plugins/sonar-xoo-plugin/build.gradle')
-rw-r--r-- | plugins/sonar-xoo-plugin/build.gradle | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/plugins/sonar-xoo-plugin/build.gradle b/plugins/sonar-xoo-plugin/build.gradle new file mode 100644 index 00000000000..ff4cd6c0080 --- /dev/null +++ b/plugins/sonar-xoo-plugin/build.gradle @@ -0,0 +1,44 @@ +configurations { + testCompile.extendsFrom(compileOnly) +} + +dependencies { + compile 'com.google.guava:guava' + compile 'commons-io:commons-io' + compile 'commons-lang:commons-lang' + compileOnly 'com.google.code.findbugs:jsr305' + compileOnly project(path: ':sonar-plugin-api', configuration: 'shadow') + + testCompile 'junit:junit' + testCompile 'org.assertj:assertj-core' + testCompile 'org.mockito:mockito-core' +} + +jar { + manifest { + attributes( + 'Plugin-Key': 'xoo', + 'Plugin-Version': project.version, + 'Plugin-Class': 'org.sonar.xoo.XooPlugin', + 'Plugin-ChildFirstClassLoader': 'false', + 'Sonar-Version': project.version, + 'SonarLint-Supported': 'true', + 'Plugin-Name': 'Xoo' + ) + } + into('META-INF/lib') { + from configurations.compile + } +} + +artifactoryPublish.skip = false + +publishing { + publications { + mavenJava(MavenPublication) { + from components.java + artifact sourcesJar + artifact javadocJar + } + } +} |