finatra-2.9.gradle 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // Set properties before any plugins get loaded
  2. ext {
  3. minJavaVersionForTests = JavaVersion.VERSION_1_8
  4. }
  5. apply from: "${rootDir}/gradle/instrumentation.gradle"
  6. apply from: "${rootDir}/gradle/test-with-scala.gradle"
  7. apply plugin: 'org.unbroken-dome.test-sets'
  8. testSets {
  9. latestDepTest {
  10. dirName = 'test'
  11. }
  12. }
  13. muzzle {
  14. // There are some weird library issues below 2.9 so can't assert inverse
  15. pass {
  16. group = 'com.twitter'
  17. module = 'finatra-http_2.11'
  18. versions = '[2.9.0,]'
  19. }
  20. pass {
  21. group = 'com.twitter'
  22. module = 'finatra-http_2.12'
  23. versions = '[2.9.0,]'
  24. }
  25. }
  26. dependencies {
  27. compileOnly group: 'com.twitter', name: 'finatra-http_2.11', version: '2.9.0'
  28. testCompile project(':instrumentation:netty:netty-4.1')
  29. testCompile group: 'com.twitter', name: 'finatra-http_2.11', version: '19.12.0'
  30. testCompile(group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.10') {
  31. force = true
  32. }
  33. // Required for older versions of finatra on JDKs >= 11
  34. testCompile group: 'com.sun.activation', name: 'javax.activation', version: '1.2.0'
  35. latestDepTestCompile project(':instrumentation:netty:netty-4.1')
  36. latestDepTestCompile group: 'com.twitter', name: 'finatra-http_2.11', version: '+'
  37. }
  38. compileLatestDepTestGroovy {
  39. classpath = classpath.plus(files(compileLatestDepTestScala.destinationDir))
  40. dependsOn compileLatestDepTestScala
  41. }