Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. dependencies {
  2. api 'com.google.guava:guava'
  3. api 'commons-io:commons-io'
  4. api 'commons-lang:commons-lang'
  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. // Produce Java 11 bytecode while making sure the code does not use any APIs from Java 17
  32. tasks.withType(JavaCompile) {
  33. options.release = 11
  34. }
  35. publishing {
  36. publications {
  37. mavenJava(MavenPublication) {
  38. from components.java
  39. if (release) {
  40. artifact sourcesJar
  41. artifact javadocJar
  42. }
  43. }
  44. }
  45. }