spine-runtimes/formatters/build.gradle
2022-07-18 10:27:42 +02:00

39 lines
1.2 KiB
Groovy

buildscript { repositories { mavenCentral() }}
plugins {
id "com.diffplug.spotless" version "5.14.0"
}
spotless {
lineEndings 'UNIX'
java {
target 'spine-libgdx/**/*.java'
eclipse().configFile('formatters/eclipse-formatter.xml')
}
cpp {
target 'spine-c/**/*.c',
'spine-c/**/.h',
'spine-cpp/**/*.cpp',
'spine-cpp/**/.h',
'spine-cocos2dx/src/**/*.cpp',
'spine-cocos2dx/src/**/*.h',
'spine-cocos2dx/example/Classes/**/*.cpp',
'spine-cocos2dx/example/Classes/**/*.h',
'spine-sfml/**/*.c',
'spine-sfml/**/*.cpp',
'spine-sfml/**/*.h',
'spine-ue4/**/*.cpp',
'spine-ue4/**/*.h',
'spine-godot/spine_godot/*.cpp',
'spine-godot/spine_godot/*.h'
clangFormat("13.0.1").pathToExe("$System.env.CLANGFORMAT").style('file')
}
typescript {
target 'spine-ts/**/src/*.ts'
targetExclude 'spine-ts/**/*.d.ts', 'spine-ts/**/node_modules/**/*.ts'
tsfmt('7.2.2').tsfmtFile('formatters/tsfmt.json')
}
}