mirror of
https://github.com/ethauvin/rife2-hello.git
synced 2025-04-25 23:37:12 -07:00
Minor cleanup
This commit is contained in:
parent
1d45241fae
commit
794f614e57
1 changed files with 1 additions and 3 deletions
|
@ -121,10 +121,8 @@ public class Rife2Plugin implements Plugin<Project> {
|
||||||
Rife2Extension rife2Extension) {
|
Rife2Extension rife2Extension) {
|
||||||
tasks.named("jar", Jar.class, jar -> {
|
tasks.named("jar", Jar.class, jar -> {
|
||||||
jar.from(precompileTemplatesTask);
|
jar.from(precompileTemplatesTask);
|
||||||
// This isn't great because it needs to be hardcoded, in order to avoid the templates
|
// This isn't great because it needs to be partially hardcoded, in order to avoid the templates
|
||||||
// declared in `src/main/resources/templates` to be included in the jar file.
|
// declared in `src/main/resources/templates` to be included in the jar file.
|
||||||
// which means that if for whatever reason the user also uses the same directory for
|
|
||||||
// something else, it will be excluded from the jar file.
|
|
||||||
rife2Extension.getPrecompiledTemplateTypes().get().forEach(templateType ->
|
rife2Extension.getPrecompiledTemplateTypes().get().forEach(templateType ->
|
||||||
jar.exclude("/templates/**." + templateType.identifier().toLowerCase()));
|
jar.exclude("/templates/**." + templateType.identifier().toLowerCase()));
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue