Add war configuration
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 7 May 2015 05:06:04 +0000 (07:06 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 7 May 2015 16:14:37 +0000 (18:14 +0200)
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: */