From 794f614e5707d35e1d38d70072beb61a419362ed Mon Sep 17 00:00:00 2001 From: Geert Bevin Date: Sun, 5 Mar 2023 11:16:32 -0500 Subject: [PATCH] Minor cleanup --- .../src/main/java/com/uwyn/rife2/gradle/Rife2Plugin.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/build-logic/src/main/java/com/uwyn/rife2/gradle/Rife2Plugin.java b/build-logic/src/main/java/com/uwyn/rife2/gradle/Rife2Plugin.java index a5ef680..a673aa4 100644 --- a/build-logic/src/main/java/com/uwyn/rife2/gradle/Rife2Plugin.java +++ b/build-logic/src/main/java/com/uwyn/rife2/gradle/Rife2Plugin.java @@ -121,10 +121,8 @@ public class Rife2Plugin implements Plugin { Rife2Extension rife2Extension) { tasks.named("jar", Jar.class, jar -> { 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. - // 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 -> jar.exclude("/templates/**." + templateType.identifier().toLowerCase())); });