File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -109,16 +109,15 @@ distributions {
109109 contents {
110110 from(tasks[" collectSourcePaths" ])
111111 from(tasks[" shadowJar" ])
112- from( " ../data/definitions/ " ) {
113- into( " data/definitions " )
114- }
115- from( " ../data/map " ) {
116- into( " data/map " )
117- }
118- from( " ../ data/spawns " ) {
119- into( " data/spawns " )
112+
113+ val emptyDirs = setOf ( " cache " , " saves " )
114+ val configs = parent !! .rootDir.resolve( " data " ).list() !! .toMutableList()
115+ configs.removeAll(emptyDirs)
116+ for (config in configs) {
117+ from( " ../data/ $config / " ) {
118+ into( " data/$config " )
119+ }
120120 }
121- val emptyDirs = listOf (" cache" , " saves" )
122121 for (dir in emptyDirs) {
123122 val file = layout.buildDirectory.get().dir(" tmp/empty/$dir /" ).asFile
124123 file.mkdirs()
You can’t perform that action at this time.
0 commit comments