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.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 project(':sonar-plugin-api-impl')
  12. }
  13. jar {
  14. manifest {
  15. attributes(
  16. 'Plugin-Key': 'xoo',
  17. 'Plugin-Version': project.version,
  18. 'Plugin-Class': 'org.sonar.xoo.XooPlugin',
  19. 'Plugin-ChildFirstClassLoader': 'false',
  20. 'Sonar-Version': project.pluginApiVersion,
  21. 'SonarLint-Supported': 'true',
  22. 'Plugin-Name': 'Xoo'
  23. )
  24. }
  25. into('META-INF/lib') {
  26. from configurations.runtimeClasspath
  27. }
  28. }
  29. artifactoryPublish.skip = false
  30. // Produce Java 11 bytecode while making sure the code does not use any APIs from Java 17
  31. tasks.withType(JavaCompile) {
  32. options.release = 11
  33. }
  34. publishing {
  35. publications {
  36. mavenJava(MavenPublication) {
  37. from components.java
  38. if (release) {
  39. artifact sourcesJar
  40. artifact javadocJar
  41. }
  42. }
  43. }
  44. }