Commit c397481
committed
Switch from in- to excludes for resource inclusion
As nearly all resources found in the vanilla jar are desired to be
included in paper, an include list is not ideal. Instead, this commit
changes the copy resource tasks to an exclude-based filter.
Additionally, this commit now allows consumers of paperweight-core to
configure the exclude list instead of directly defining it in the task
definition.
The configurable exclude list is merged with all source files, defined
through the vanillaJarIncludes property, and the
`META-INF/MANIFEST.MF` file, which breaks decompilation of remapped
jars.1 parent 9496216 commit c397481
File tree
2 files changed
+4
-4
lines changed- paperweight-core/src/main/kotlin/taskcontainers
- paperweight-lib/src/main/kotlin/tasks
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
| 58 | + | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
0 commit comments