Add war configuration
[rhynodge.git] / build.gradle
index 643c22d..8984693 100644 (file)
@@ -1,4 +1,5 @@
 apply plugin: "java"
+apply plugin: "war"
 apply plugin: "jacoco"
 apply plugin: "idea"
 
@@ -75,4 +76,9 @@ createVersion << {
     new File("src/generated/resources/version.txt").withWriter() { it.write(version) }
 }
 
+war {
+    classpath sourceSets.generated.output
+    dependsOn(test)
+}
+
 /* vim: set ts=4 sw=4 et: */