Cleaning up the code; still need to test everything.
[jpf-core.git] / gradle / distribution.gradle
1 task srcDist(type: Zip) {
2     group = "JPF Distribution"
3     description = "Builds the source distribution."
4
5     baseName = project.name
6     version = project.version
7     classifier = "src"
8     extension = "zip"
9
10     destinationDir = buildDir
11     includeEmptyDirs = false
12
13     from projectDir
14     include "build.gradle"
15     include "settings.gradle"
16     include "gradlew"
17     include "gradlew.bat"
18     include "gradle/**/*"
19     include "src/**/*"
20     include "bin/**/*"
21     include "jpf.properties"
22     include "build.properties"
23     include "LICENSE-2.0.txt"
24     include "README.md"
25 }
26
27 task dist(type: Zip) {
28     group = "JPF Distribution"
29     description = "Builds binary distribution."
30
31     baseName = project.name
32     version = project.version
33     extension = "zip"
34
35     destinationDir = buildDir
36     includeEmptyDirs = false
37
38     from projectDir
39     include "jpf.properties"
40     include "build.properties"
41     include "bin/**/*"
42     include "lib/**/*"
43     include "${buildDir.name}/**/*.jar"
44 }
45