build.gradle.kts 983 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("org.influxdb")
  7. module.set("influxdb-java")
  8. versions.set("[2.4,)")
  9. assertInverse.set(true)
  10. }
  11. }
  12. dependencies {
  13. compileOnly("org.influxdb:influxdb-java:2.4")
  14. compileOnly("com.google.auto.value:auto-value-annotations")
  15. annotationProcessor("com.google.auto.value:auto-value")
  16. // we use methods that weren't present before 2.14 in tests
  17. testLibrary("org.influxdb:influxdb-java:2.14")
  18. }
  19. testing {
  20. suites {
  21. val test24 by registering(JvmTestSuite::class) {
  22. dependencies {
  23. implementation(project())
  24. implementation("org.influxdb:influxdb-java:2.4")
  25. implementation("org.testcontainers:testcontainers")
  26. }
  27. }
  28. }
  29. }
  30. tasks {
  31. test {
  32. usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
  33. }
  34. if (!(findProperty("testLatestDeps") as Boolean)) {
  35. check {
  36. dependsOn(testing.suites)
  37. }
  38. }
  39. }