dependency-management.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. if (!project.hasProperty("reactorVersion")) {
  2. ext.reactorVersion = "2020.0.+"
  3. }
  4. if (!project.hasProperty("springVersion")) {
  5. ext.springVersion = "5.3.+"
  6. }
  7. if (!project.hasProperty("springDataVersion")) {
  8. ext.springDataVersion = "Neumann-SR+"
  9. }
  10. if (!project.hasProperty("kotlinVersion")) {
  11. ext.kotlinVersion = "1.+"
  12. }
  13. if (!project.hasProperty("rsocketVersion")) {
  14. ext.rsocketVersion = "1.1.0"
  15. }
  16. if (!project.hasProperty("locksDisabled")) {
  17. dependencyLocking {
  18. lockAllConfigurations()
  19. }
  20. }
  21. ext.openSamlVersion = "3.+"
  22. dependencies {
  23. management platform(project(":spring-security-dependencies"))
  24. }
  25. configurations {
  26. all {
  27. resolutionStrategy {
  28. componentSelection {
  29. all { ComponentSelection selection ->
  30. def candidate = selection.getCandidate()
  31. def version = candidate.getVersion().toLowerCase()
  32. if (version.contains("alpha") || version.contains("beta")) {
  33. selection.reject("Rejecting $selection with version $version as alpha/beta")
  34. }
  35. if (candidate.getModule().equals("jsr250-api") && version.equals("1.0-20050927.133100")) {
  36. selection.reject("Rejecting $selection with version $version as invalid version")
  37. }
  38. }
  39. }
  40. }
  41. }
  42. }