summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-01-26 08:10:49 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-01-26 08:11:48 +0100
commitb712a014e41860fa3698bd90dab9ffde9830e1ff (patch)
tree5e3c5a6e8b387917552404c9643778a4f18d4d9b
parent0aac7c559d87de940238c91ff06c1d225d489ec5 (diff)
Ignore node_modules in Maven and Gradle.
Change-Id: I7190cdddf4c3215caffb61fe441a0ff2329919cf
-rw-r--r--build.gradle4
-rw-r--r--pom.xml10
2 files changed, 14 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 7f9b905..4a27788 100644
--- a/build.gradle
+++ b/build.gradle
@@ -105,4 +105,8 @@ task compileWeb {
doLast {}
}
+processResources {
+ exclude("META-INF/resources/node_modules/**/*")
+}
+
build.dependsOn compileWeb
diff --git a/pom.xml b/pom.xml
index 2a42a29..77eb2cc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -289,6 +289,16 @@
</plugin>
</plugins>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <excludes>
+ <exclude>META-INF/resources/node_modules/**/*</exclude>
+ </excludes>
+ <filtering>false</filtering>
+ </resource>
+ </resources>
+
</build>
<profiles>