-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuild.gradle
More file actions
65 lines (51 loc) · 1.24 KB
/
build.gradle
File metadata and controls
65 lines (51 loc) · 1.24 KB
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
/*
*
* * Copyright (c) 2017. Nordea Bank AB
* * Licensed under the MIT license (LICENSE.txt)
*
*/
version '1.40'
apply plugin: 'groovy'
apply plugin: 'application'
repositories {
mavenCentral()
}
allprojects {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.4.15'
compile 'commons-cli:commons-cli:1.4'
compile 'org.apache.ant:ant:1.9.4'
compile 'org.fusesource.jansi:jansi:1.16'
testCompile 'junit:junit:4.12'
}
test {
testLogging {
events "passed", "skipped", "failed"
exceptionFormat "full"
}
}
task unzipJre (type: Copy){
from zipTree("./lib/jre-1.8.161.zip")
into "${buildDir}/jre"
}
jar.dependsOn unzipJre
tasks.withType(CreateStartScripts) {
def tplName = 'src/main/resources/devtool.bat'
assert project.file(tplName).exists()
windowsStartScriptGenerator.template = resources.text.fromFile(tplName)
}
applicationDistribution.from("./lib") {
include "curl.exe"
include "curl-ca-bundle.crt"
into("bin")
}
applicationDistribution.from("${buildDir}/jre") {
include "**/**"
}
applicationDistribution.from(".") {
include "changelog.md"
}
mainClassName = "com.nordea.devtool.Devtool"