build.gradle.kts 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. id("org.unbroken-dome.test-sets")
  4. }
  5. muzzle {
  6. fail {
  7. group.set("com.vaadin")
  8. module.set("flow-server")
  9. versions.set("[,2.2.0)")
  10. }
  11. pass {
  12. group.set("com.vaadin")
  13. module.set("flow-server")
  14. versions.set("[2.2.0,3)")
  15. }
  16. fail {
  17. group.set("com.vaadin")
  18. module.set("flow-server")
  19. versions.set("[3.0.0,3.1.0)")
  20. }
  21. pass {
  22. group.set("com.vaadin")
  23. module.set("flow-server")
  24. versions.set("[3.1.0,23.3.0)")
  25. }
  26. }
  27. testSets {
  28. create("vaadin142Test")
  29. create("vaadin14LatestTest")
  30. create("vaadin16Test")
  31. create("latestDepTest") {
  32. dirName = "vaadinLatestTest"
  33. }
  34. }
  35. tasks {
  36. val vaadin142Test by existing
  37. val vaadin16Test by existing
  38. val vaadin14LatestTest by existing
  39. test {
  40. dependsOn(vaadin142Test)
  41. dependsOn(vaadin16Test)
  42. if (findProperty("testLatestDeps") as Boolean) {
  43. dependsOn(vaadin14LatestTest)
  44. }
  45. usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
  46. }
  47. }
  48. dependencies {
  49. compileOnly("com.google.auto.value:auto-value-annotations")
  50. annotationProcessor("com.google.auto.value:auto-value")
  51. bootstrap(project(":instrumentation:servlet:servlet-common:bootstrap"))
  52. compileOnly("com.vaadin:flow-server:2.2.0")
  53. add("vaadin16TestImplementation", "com.vaadin:vaadin-spring-boot-starter:16.0.0")
  54. add("vaadin142TestImplementation", "com.vaadin:vaadin-spring-boot-starter:14.2.0")
  55. testImplementation(project(":instrumentation:vaadin-14.2:testing"))
  56. testInstrumentation(project(":instrumentation:servlet:servlet-3.0:javaagent"))
  57. testInstrumentation(project(":instrumentation:servlet:servlet-javax-common:javaagent"))
  58. testInstrumentation(project(":instrumentation:tomcat:tomcat-7.0:javaagent"))
  59. add("vaadin14LatestTestImplementation", "com.vaadin:vaadin-spring-boot-starter:14.+")
  60. add("latestDepTestImplementation", "com.vaadin:vaadin-spring-boot-starter:23.2.+")
  61. }
  62. configurations {
  63. listOf(
  64. testRuntimeClasspath,
  65. named("vaadin142TestRuntimeClasspath"),
  66. named("vaadin14LatestTestRuntimeClasspath"),
  67. named("vaadin16TestRuntimeClasspath"),
  68. named("latestDepTestRuntimeClasspath"),
  69. )
  70. .forEach {
  71. it.configure {
  72. resolutionStrategy {
  73. // requires old logback (and therefore also old slf4j)
  74. force("ch.qos.logback:logback-classic:1.2.11")
  75. force("org.slf4j:slf4j-api:1.7.36")
  76. }
  77. }
  78. }
  79. }