build.gradle 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. buildscript { repositories { mavenCentral() }}
  2. plugins {
  3. id "com.diffplug.spotless" version "5.14.0"
  4. }
  5. spotless {
  6. lineEndings 'UNIX'
  7. java {
  8. target 'spine-libgdx/**/*.java',
  9. 'spine-android/**/*.java'
  10. eclipse().configFile('formatters/eclipse-formatter.xml')
  11. }
  12. cpp {
  13. target 'spine-c/**/*.c',
  14. 'spine-c/**/.h',
  15. 'spine-cpp/**/*.cpp',
  16. 'spine-cpp/**/.h',
  17. 'spine-cocos2dx/src/**/*.cpp',
  18. 'spine-cocos2dx/src/**/*.h',
  19. 'spine-cocos2dx/example/Classes/**/*.cpp',
  20. 'spine-cocos2dx/example/Classes/**/*.h',
  21. 'spine-glfw/src/**/*.cpp',
  22. 'spine-glfw/src/**/*.h',
  23. 'spine-glfw/example/**/*.cpp',
  24. 'spine-glfw/example/**/*.h',
  25. 'spine-sdl/src/**/*.c',
  26. 'spine-sdl/src/**/*.cpp',
  27. 'spine-sdl/src/**/*.h',
  28. 'spine-sdl/example/**/*.c',
  29. 'spine-sdl/example/**/*.cpp',
  30. 'spine-sdl/example/**/*.h',
  31. 'spine-sfml/c/src/**/*.c',
  32. 'spine-sfml/c/src/**/*.h',
  33. 'spine-sfml/cpp/src/**/*.cpp',
  34. 'spine-sfml/cpp/src/**/*.h',
  35. 'spine-ue/**/*.cpp',
  36. 'spine-ue/**/*.h',
  37. 'spine-godot/spine_godot/*.cpp',
  38. 'spine-godot/spine_godot/*.h'
  39. clangFormat("13.0.1").pathToExe("$System.env.CLANGFORMAT").style('file')
  40. }
  41. typescript {
  42. target 'spine-ts/**/src/*.ts'
  43. targetExclude 'spine-ts/**/*.d.ts', 'spine-ts/**/node_modules/**/*.ts'
  44. tsfmt('7.2.2').tsfmtFile('formatters/tsfmt.json')
  45. }
  46. }