-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
66 lines (53 loc) · 1.66 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
buildscript {
ext.kotlin_version = '1.2.21'
ext.spring_boot_version = '1.5.3.RELEASE'
ext.swaggerparser = '1.0.33'
ext.mustache = '0.8.18'
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.springframework.boot:spring-boot-gradle-plugin:$spring_boot_version"
}
}
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'kotlin'
apply plugin: 'org.springframework.boot'
apply plugin: 'application'
mainClassName = "au.gov.dxa.graph.Application"
test {
beforeTest { descriptor ->
logger.lifecycle("Running test: ${descriptor}")
}
}
jar {
baseName = 'graph'
version = '1.0'
}
task addAptYaml(type: Exec) {
workingDir "${buildDir}/../"
commandLine 'zip', '-rv', 'build/libs/graph-1.0.jar', 'apt.yml'
}
task addAddLinks(type: Exec) {
workingDir "${buildDir}/../"
commandLine 'zip', '-rv', 'build/libs/graph-1.0.jar', 'AddLinks.xsl'
}
distZip.finalizedBy(addAptYaml)
distZip.finalizedBy(addAddLinks)
repositories {
jcenter()
}
dependencies {
testCompile "junit:junit"
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile 'org.springframework.boot:spring-boot-starter'
compile 'org.springframework.boot:spring-boot-starter-web'
compile 'org.springframework.boot:spring-boot-starter-actuator'
compile 'org.springframework.boot:spring-boot-starter-security'
compile 'org.apache.httpcomponents:httpclient:4.5'
compile "io.swagger:swagger-parser:$swaggerparser"
compile "com.github.spullara.mustache.java:compiler:$mustache"
compile 'com.beust:klaxon:2.1.4'
}