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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. dependencies {
  2. api 'com.google.guava:guava'
  3. api 'commons-io:commons-io'
  4. api 'org.apache.commons:commons-lang3'
  5. api 'org.apache.commons:commons-csv'
  6. compileOnlyApi 'com.google.code.findbugs:jsr305'
  7. compileOnlyApi 'org.sonarsource.api.plugin:sonar-plugin-api'
  8. testImplementation 'junit:junit'
  9. testImplementation 'org.assertj:assertj-core'
  10. testImplementation 'org.mockito:mockito-core'
  11. testImplementation 'org.sonarsource.api.plugin:sonar-plugin-api-test-fixtures'
  12. testImplementation project(':sonar-plugin-api-impl')
  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.pluginApiVersion,
  22. 'SonarLint-Supported': 'true',
  23. 'Plugin-Name': 'Xoo'
  24. )
  25. }
  26. into('META-INF/lib') {
  27. from configurations.runtimeClasspath
  28. }
  29. }
  30. artifactoryPublish.skip = false
  31. publishing {
  32. publications {
  33. mavenJava(MavenPublication) {
  34. from components.java
  35. if (release) {
  36. artifact sourcesJar
  37. artifact javadocJar
  38. }
  39. }
  40. }
  41. }