-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
96 lines (79 loc) · 2.24 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
plugins {
id "org.sonarqube" version "2.2"
id "java"
id "eclipse"
id "application"
id "distribution"
}
applicationDistribution.from("src/main/resources/config.properties") {
into "bin"
}
applicationDistribution.from("src/main/resources/log4j.properties") {
into "bin"
}
applicationDistribution.from("src/main/resources/images") {
into "bin/images"
}
applicationDistribution.from("data") {
into "bin/data"
}
applicationDefaultJvmArgs = ["-Xms5g"]
jar {
exclude('config.properties', 'log4j.properties','images')
}
startScripts {
classpath += files('bin')
doLast {
def windowsScriptFile = file getWindowsScript()
def unixScriptFile = file getUnixScript()
windowsScriptFile.text = windowsScriptFile.text.replace('%APP_HOME%\\lib\\bin', '%APP_HOME%\\bin')
unixScriptFile.text = unixScriptFile.text.replace('$APP_HOME/lib/bin', '$APP_HOME/bin')
}
}
sourceCompatibility = 1.8
version = '2.1.2'
jar {
manifest {
attributes 'Implementation-Title': 'Gradle Quickstart',
'Implementation-Version': version
}
}
repositories {
mavenCentral()
}
mainClassName = "gui.ConfigGeneratorGui"
configurations.all {
resolutionStrategy{
//failOnVersionConflict()
cacheChangingModulesFor 0, 'seconds'
}
}
dependencies {
compile group: 'it.unimi.dsi', name: 'fastutil', version: '7.0.13'
compile 'log4j:log4j:1.2.17'
compile group: 'org.apache.commons', name: 'commons-math3', version: '3.6.1'
compile group: 'commons-beanutils', name: 'commons-beanutils', version: '1.9.3'
compile group: 'commons-lang', name: 'commons-lang', version: '2.6'
compile 'org.apache.commons:commons-configuration2:2.1'
compile 'com.google.guava:guava:20.0'
testCompile group: 'junit', name: 'junit', version: '4.+'
testCompile group: 'org.mockito', name: 'mockito-all', version: '1.10.19'
compile group: 'org.json', name: 'json', version: '20160810'
}
test {
ignoreFailures = false
systemProperties 'property': 'value'
}
task wrapper(type: Wrapper) {
gradleVersion = '3.1'
}
task debug << {
println "java.home is " + System.properties['java.home']
}
uploadArchives {
repositories {
flatDir {
dirs 'repos'
}
}
}