X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=build.gradle;h=d772187ebbd44403f1bc4622936d8b891650d741;hb=252bc27aca417b31fa27716dfab7e6446d642a7c;hp=643c22d4cf092721e65ed7f659437c39b2fd7605;hpb=514c5eeea41729b813862198c3ccd95fa6ff3ef3;p=rhynodge.git diff --git a/build.gradle b/build.gradle index 643c22d..d772187 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,5 @@ apply plugin: "java" +apply plugin: "war" apply plugin: "jacoco" apply plugin: "idea" @@ -37,6 +38,7 @@ dependencies { compile group: "com.fasterxml.jackson.core", name: "jackson-core", version: "2.1.2" compile group: "com.fasterxml.jackson.core", name: "jackson-annotations", version: "2.1.2" compile group: "com.fasterxml.jackson.core", name: "jackson-databind", version: "2.1.2" + compile group: "com.google.inject", name: "guice", version: "4.0" testCompile group: "junit", name: "junit", version:"4.12" testCompile group: "org.hamcrest", name: "hamcrest-library", version:"1.3" @@ -51,6 +53,7 @@ task fatJar(type: Jar) { ) } from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } + from { sourceSets.generated.resources.srcDirs } with jar dependsOn test } @@ -75,4 +78,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: */