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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. }
  22. import org.apache.tools.ant.filters.ReplaceTokens
  23. processResources {
  24. filter ReplaceTokens, tokens: [
  25. 'project.version': project.version
  26. ]
  27. }
  28. artifactoryPublish.skip = false
  29. // Produce Java 11 bytecode while making sure the code does not use any APIs from Java 17
  30. tasks.withType(JavaCompile) {
  31. options.release = 11
  32. }
  33. publishing {
  34. publications {
  35. mavenJava(MavenPublication) {
  36. from components.java
  37. if (release) {
  38. artifact sourcesJar
  39. artifact javadocJar
  40. }
  41. }
  42. }
  43. }