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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 'org.apache.commons:commons-lang3'
  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.junit.jupiter:junit-jupiter-api'
  20. testImplementation 'org.assertj:assertj-core'
  21. testImplementation 'org.mockito:mockito-core'
  22. testImplementation 'org.mockito:mockito-junit-jupiter'
  23. testImplementation 'org.sonarsource.api.plugin:sonar-plugin-api-test-fixtures'
  24. testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
  25. testRuntimeOnly 'org.junit.vintage:junit-vintage-engine'
  26. }
  27. import org.apache.tools.ant.filters.ReplaceTokens
  28. processResources {
  29. filter ReplaceTokens, tokens: [
  30. 'project.version': project.version,
  31. 'versionEOL': project.properties["versionEOL"]
  32. ]
  33. }
  34. artifactoryPublish.skip = false
  35. publishing {
  36. publications {
  37. mavenJava(MavenPublication) {
  38. from components.java
  39. if (release) {
  40. artifact sourcesJar
  41. artifact javadocJar
  42. }
  43. }
  44. }
  45. }
  46. test {
  47. // Enabling the JUnit Platform (see https://github.com/junit-team/junit5-samples/tree/master/junit5-migration-gradle)
  48. useJUnitPlatform()
  49. }