You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.gradle 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. configurations {
  2. testCompile.extendsFrom(compileOnly)
  3. }
  4. dependencies {
  5. compile 'com.google.guava:guava'
  6. compile 'commons-io:commons-io'
  7. compile 'commons-lang:commons-lang'
  8. compile 'org.apache.commons:commons-csv'
  9. compile project(path: ':sonar-plugin-api', configuration: 'shadow')
  10. compileOnly 'com.google.code.findbugs:jsr305'
  11. testCompile 'junit:junit'
  12. testCompile 'org.assertj:assertj-core'
  13. testCompile 'org.mockito:mockito-core'
  14. testCompile project(':sonar-plugin-api-impl')
  15. }
  16. jar {
  17. manifest {
  18. attributes(
  19. 'Plugin-Key': 'xoo',
  20. 'Plugin-Version': project.version,
  21. 'Plugin-Class': 'org.sonar.xoo.XooPlugin',
  22. 'Plugin-ChildFirstClassLoader': 'false',
  23. 'Sonar-Version': project.version,
  24. 'SonarLint-Supported': 'true',
  25. 'Plugin-Name': 'Xoo'
  26. )
  27. }
  28. into('META-INF/lib') {
  29. from configurations.compile
  30. }
  31. }
  32. artifactoryPublish.skip = false
  33. publishing {
  34. publications {
  35. mavenJava(MavenPublication) {
  36. from components.java
  37. if (release) {
  38. artifact sourcesJar
  39. artifact javadocJar
  40. }
  41. }
  42. }
  43. }