forked from dbacvetkov/PASH-Viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
47 lines (41 loc) · 1.23 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* This build file was auto generated by running the Gradle 'init' task
* by 'amaslak' at '9/15/16 5:43 PM' with Gradle 3.0
*
* This generated file contains a commented-out sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* user guide available at https://docs.gradle.org/3.0/userguide/tutorial_java_projects.html
*/
apply plugin: 'application'
apply plugin: 'java'
version = '0.4.1'
sourceCompatibility = 1.7
targetCompatibility = 1.7
mainClassName = "org.ash.MainApp"
applicationDefaultJvmArgs = ["-Xmx512m"]
//create a single Jar with all dependencies
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'PASH Viewer',
'Implementation-Version': version,
'Main-Class': mainClassName
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
sourceSets {
main {
java {
srcDirs = ["src/"]
}
resources {
srcDirs = ["src/"]
include '**/*.properties'
include '**/*.xml'
}
}
}
dependencies {
compile fileTree(dir: 'lib', include: '*.jar')
}