-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
54 lines (45 loc) · 1.07 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
48
49
50
51
52
53
54
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'application'
sourceCompatibility = 1.8
version = '1.1'
mainClassName = "org.mcnpl.pfp.Main"
repositories {
flatDir {
dirs 'lib'
}
mavenLocal()
mavenCentral()
}
dependencies {
compile name: 'mcnpl-common-1.3.0'
compile 'org.jodd:jodd-mail:4.3.2'
compile 'com.miglayout:miglayout-swing:4.2'
//Allows the app to access the Windows Credentials Manager.
compile 'net.java.dev.jna:jna-platform:4.2.2'
testCompile 'junit:junit:4.+'
testCompile 'org.mockito:mockito-all:1.10.+'
}
//Update "build.properties" file.
//source: https://stackoverflow.com/a/25328289
processResources {
filesMatching('**/*.properties') {
filter {
it.replace('${version}', version)
}
}
}
jar {
manifest {
attributes 'Main-Class': mainClassName
}
//build a fat JAR
from {
configurations.compile.collect {
it.isDirectory() ? it : zipTree(it)
}
configurations.runtime.collect {
it.isDirectory() ? it : zipTree(it)
}
}
}