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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. sonar {
  2. properties {
  3. property 'sonar.projectName', "${projectTitle} :: Plugin API Implementation"
  4. }
  5. }
  6. dependencies {
  7. // please keep the list grouped by configuration and ordered by name
  8. api 'commons-codec:commons-codec'
  9. api 'commons-io:commons-io'
  10. api 'commons-lang:commons-lang'
  11. api 'org.apache.commons:commons-csv'
  12. api 'org.sonarsource.api.plugin:sonar-plugin-api'
  13. compileOnlyApi 'com.google.code.findbugs:jsr305'
  14. compileOnlyApi 'junit:junit'
  15. testCompileOnly 'com.google.code.findbugs:jsr305'
  16. testImplementation 'com.google.guava:guava'
  17. testImplementation 'com.tngtech.java:junit-dataprovider'
  18. testImplementation 'junit:junit'
  19. testImplementation 'org.assertj:assertj-core'
  20. testImplementation 'org.mockito:mockito-core'
  21. testImplementation 'org.sonarsource.api.plugin:sonar-plugin-api-test-fixtures'
  22. }
  23. import org.apache.tools.ant.filters.ReplaceTokens
  24. processResources {
  25. filter ReplaceTokens, tokens: [
  26. 'project.version': project.version
  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. }