build.gradle.kts 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("org.grails")
  7. module.set("grails-web-url-mappings")
  8. versions.set("[3.0,)")
  9. // version 3.1.15 depends on org.grails:grails-datastore-core:5.0.13.BUILD-SNAPSHOT
  10. // which (obviously) does not exist
  11. // version 3.3.6 depends on org.grails:grails-datastore-core:6.1.10.BUILD-SNAPSHOT
  12. // which (also obviously) does not exist
  13. skip("3.1.15", "3.3.6")
  14. // these versions pass if you add the grails maven repository (https://repo.grails.org/artifactory/core)
  15. skip("3.2.0", "3.3.0", "3.3.1", "3.3.2", "3.3.3", "4.0.0", "4.0.1", "4.0.5", "4.0.6", "4.0.7", "4.0.8", "4.0.9")
  16. assertInverse.set(true)
  17. }
  18. }
  19. // first version where our tests work
  20. val grailsVersion = "3.0.6"
  21. val springBootVersion = "1.2.5.RELEASE"
  22. dependencies {
  23. bootstrap(project(":instrumentation:servlet:servlet-common:bootstrap"))
  24. library("org.grails:grails-plugin-url-mappings:$grailsVersion")
  25. testInstrumentation(project(":instrumentation:servlet:servlet-3.0:javaagent"))
  26. testInstrumentation(project(":instrumentation:servlet:servlet-javax-common:javaagent"))
  27. testInstrumentation(project(":instrumentation:tomcat:tomcat-7.0:javaagent"))
  28. testInstrumentation(project(":instrumentation:spring:spring-webmvc-3.1:javaagent"))
  29. testLibrary("org.springframework.boot:spring-boot-autoconfigure:$springBootVersion")
  30. testLibrary("org.springframework.boot:spring-boot-starter-tomcat:$springBootVersion")
  31. }
  32. // testing-common pulls in groovy 4 and spock as dependencies, exclude them
  33. configurations.configureEach {
  34. exclude("org.apache.groovy", "groovy")
  35. exclude("org.apache.groovy", "groovy-json")
  36. exclude("org.spockframework", "spock-core")
  37. }
  38. configurations.configureEach {
  39. if (!name.contains("muzzle")) {
  40. resolutionStrategy {
  41. eachDependency {
  42. if (requested.group == "org.codehaus.groovy") {
  43. useVersion("3.0.9")
  44. }
  45. }
  46. }
  47. }
  48. }