-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
89 lines (77 loc) · 2.33 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
plugins {
id 'java'
id 'org.springframework.boot' version '1.5.2.RELEASE'
id 'org.hidetake.ssh' version '1.1.5'
}
version = '2.4-SNAPSHOT'
repositories {
mavenLocal()
mavenCentral()
}
test {
testLogging.showStandardStreams = true
testLogging.exceptionFormat = 'full'
}
/* http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/html/deployment-install.html
* this will generate a jar that is executable. It will add a script before the zipped content,
* thus it will not be a jar anymore. However this, simplifies the deployemnt as only one file
* has to be copied. For a custom script, use embeddedLaunchScript.
*
* systemd / init.d installation in "/etc/systemd/system/":
* http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/html/deployment-install.html#deployment-service
*
* # [Unit]
* # Description=coinblesk
* # After=syslog.target
*
* # [Service]
* # User=nobody
* # Group=coinblesk
* # ExecStart=/var/lib/coinblesk/coinblesk.jar
* # SuccessExitStatus=143
*
* # [Install]
* # WantedBy=multi-user.target
*
* Enable with:
* # systemctl enable coinblesk.service
*
* Make sure the directory /var/lib/coinblesk exists
*
*/
springBoot {
executable = true
}
jar {
manifest {
attributes(
'Implementation-Version': project.version
)
}
}
dependencies {
// Spring Boot
compile 'org.springframework.boot:spring-boot-starter-web'
compile 'org.springframework.boot:spring-boot-devtools'
compile 'org.springframework.boot:spring-boot-starter-security'
compile 'org.springframework.boot:spring-boot-starter-data-jpa'
compile 'org.springframework.boot:spring-boot-starter-mail'
compile 'org.springframework.retry:spring-retry'
compile 'io.springfox:springfox-swagger-ui:2.6.1'
compile 'io.springfox:springfox-swagger2:2.6.1'
// Database drivers
runtime 'org.postgresql:postgresql'
runtime 'com.h2database:h2'
// Shared resources with android client
// (includes transfer-objects)
compile 'com.coinblesk:coinblesk-shared-resources:1.4.107'
compile 'org.knowm.xchange:xchange-bitstamp:4.2.0'
// Misc
compile 'org.apache.commons:commons-lang3:3.5'
compileOnly 'org.projectlombok:lombok:1.16.16'
// Testing
testCompile 'org.springframework.boot:spring-boot-starter-test'
testCompile 'org.springframework.security:spring-security-test'
}
// gradle run is alias for bootRun
task run(dependsOn: bootRun)