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 982B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. compileOnly 'com.google.code.findbugs:jsr305'
  9. compileOnly project(path: ':sonar-plugin-api', configuration: 'shadow')
  10. testCompile 'junit:junit'
  11. testCompile 'org.assertj:assertj-core'
  12. testCompile 'org.mockito:mockito-core'
  13. }
  14. jar {
  15. manifest {
  16. attributes(
  17. 'Plugin-Key': 'xoo',
  18. 'Plugin-Version': project.version,
  19. 'Plugin-Class': 'org.sonar.xoo.XooPlugin',
  20. 'Plugin-ChildFirstClassLoader': 'false',
  21. 'Sonar-Version': project.version,
  22. 'SonarLint-Supported': 'true',
  23. 'Plugin-Name': 'Xoo'
  24. )
  25. }
  26. into('META-INF/lib') {
  27. from configurations.compile
  28. }
  29. }
  30. artifactoryPublish.skip = false
  31. publishing {
  32. publications {
  33. mavenJava(MavenPublication) {
  34. from components.java
  35. artifact sourcesJar
  36. artifact javadocJar
  37. }
  38. }
  39. }