forked from EsotericSoftware/spine-runtimes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
37 lines (32 loc) · 1.02 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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'
clangFormat("12.0.1").pathToExe("$System.env.CLANGFORMAT").style('file')
}
typescript {
target 'spine-ts/**/*.ts'
targetExclude 'spine-ts/**/*.d.ts'
tsfmt('7.2.2').tsfmtFile('formatters/tsfmt.json')
}
}