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

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