build.gradle.kts 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. fail {
  6. group.set("com.vaadin")
  7. module.set("flow-server")
  8. versions.set("[,2.2.0)")
  9. }
  10. pass {
  11. group.set("com.vaadin")
  12. module.set("flow-server")
  13. versions.set("[2.2.0,3)")
  14. }
  15. fail {
  16. group.set("com.vaadin")
  17. module.set("flow-server")
  18. versions.set("[3.0.0,3.1.0)")
  19. }
  20. pass {
  21. group.set("com.vaadin")
  22. module.set("flow-server")
  23. versions.set("[3.1.0,)")
  24. }
  25. }
  26. dependencies {
  27. compileOnly("com.google.auto.value:auto-value-annotations")
  28. annotationProcessor("com.google.auto.value:auto-value")
  29. bootstrap(project(":instrumentation:servlet:servlet-common:bootstrap"))
  30. compileOnly("com.vaadin:flow-server:2.2.0")
  31. testInstrumentation(project(":instrumentation:servlet:servlet-3.0:javaagent"))
  32. testInstrumentation(project(":instrumentation:servlet:servlet-javax-common:javaagent"))
  33. testInstrumentation(project(":instrumentation:tomcat:tomcat-7.0:javaagent"))
  34. }
  35. testing {
  36. suites {
  37. val vaadin142Test by registering(JvmTestSuite::class) {
  38. dependencies {
  39. implementation(project(":instrumentation:vaadin-14.2:testing"))
  40. implementation("com.vaadin:vaadin-spring-boot-starter:14.2.0")
  41. }
  42. }
  43. val vaadin16Test by registering(JvmTestSuite::class) {
  44. dependencies {
  45. implementation(project(":instrumentation:vaadin-14.2:testing"))
  46. implementation("com.vaadin:vaadin-spring-boot-starter:16.0.0")
  47. }
  48. }
  49. val vaadin14LatestTest by registering(JvmTestSuite::class) {
  50. dependencies {
  51. implementation(project(":instrumentation:vaadin-14.2:testing"))
  52. implementation("com.vaadin:vaadin-spring-boot-starter:14.+")
  53. }
  54. }
  55. val vaadinLatestTest by registering(JvmTestSuite::class) {
  56. dependencies {
  57. implementation(project(":instrumentation:vaadin-14.2:testing"))
  58. implementation("com.vaadin:vaadin-spring-boot-starter:+")
  59. }
  60. }
  61. }
  62. }
  63. tasks {
  64. withType<Test>().configureEach {
  65. usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
  66. }
  67. check {
  68. if (findProperty("testLatestDeps") as Boolean) {
  69. dependsOn(testing.suites.named("vaadin14LatestTest"), testing.suites.named("vaadinLatestTest"))
  70. } else {
  71. dependsOn(testing.suites.named("vaadin142Test"), testing.suites.named("vaadin16Test"))
  72. }
  73. }
  74. }
  75. configurations.configureEach {
  76. resolutionStrategy {
  77. // requires old logback (and therefore also old slf4j)
  78. force("ch.qos.logback:logback-classic:1.2.11")
  79. force("org.slf4j:slf4j-api:1.7.36")
  80. }
  81. }