-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
59 lines (52 loc) · 1.32 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
buildscript {
ext {
springBootVersion = '1.5.8.RELEASE'
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("org.hidetake:gradle-ssh-plugin:2.9.0")
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'org.hidetake.ssh'
group = 'com.jlucka'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-freemarker')
compile('org.springframework.boot:spring-boot-starter-thymeleaf')
compile('org.springframework.boot:spring-boot-starter-web')
compile("com.fasterxml.jackson.core:jackson-databind")
compile group: 'org.webjars', name: 'font-awesome', version: '5.1.0'
compile group: 'net.aksingh', name: 'owm-japis', version: '2.5.2.2'
compile group: 'org.webjars', name: 'jquery', version: '3.2.1'
compile group: 'org.webjars', name: 'webjars-locator'
testCompile('org.springframework.boot:spring-boot-starter-test')
}
remotes {
pi {
host = '192.168.0.250'
user = 'pi'
password = 'pimalinka'
}
}
task deployToPi {
group 'deploy'
doLast {
println ssh.version
ssh.run {
session(remotes.pi) {
put from: jar.archivePath.path, into: '/home/pi'
}
}
}
}