Include generated files in fat jar
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 7 May 2015 19:36:34 +0000 (21:36 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 7 May 2015 19:36:34 +0000 (21:36 +0200)
build.gradle

index 8984693..af795fc 100644 (file)
@@ -52,6 +52,7 @@ task fatJar(type: Jar) {
                )
        }
        from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
+       from { sourceSets.generated.resources.srcDirs }
        with jar
        dependsOn test
 }