-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
94 lines (81 loc) · 2.01 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
group 'ca.sfu.teambeta'
version '0.1'
apply plugin: 'java'
apply plugin: 'checkstyle'
apply plugin: 'application'
mainClassName = "ca.sfu.teambeta.Main"
checkstyle {
toolVersion = "6.19"
}
jar {
manifest {
attributes 'Main-Class': 'ca.sfu.teambeta.JarEntry'
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
into('web') {
from 'web'
}
from 'testkeystore.jks'
}
sourceSets.main {
java {
srcDir 'src'
}
}
sourceSets.test {
java {
srcDir 'test'
}
}
sourceSets.main {
resources.srcDir 'resources'
}
sourceSets.test {
resources.srcDir 'resources'
}
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile 'com.mashape.unirest:unirest-java:1.4.9'
compile 'com.opencsv:opencsv:3.7'
compile 'org.hibernate:hibernate-core:5.1.0.Final'
compile 'com.h2database:h2:1.4.192'
compile 'mysql:mysql-connector-java:6.0.2'
compile 'org.hsqldb:hsqldb:2.0.0'
compile 'com.sparkjava:spark-core:2.5'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.6.1'
compile group: 'com.google.code.gson', name: 'gson', version: '1.7.2'
compile group: 'javax.json', name: 'javax.json-api', version: '1.0'
compile group: 'com.java-adventures.security', name: 'secure-password-hash', version: '1.0.1'
compile files('web')
}
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.hidetake:gradle-ssh-plugin:2.4.0"
}
}
apply plugin: 'org.hidetake.ssh'
remotes {
webServer {
host = 'cmpt373-beta.csil.sfu.ca'
user = 'root'
identity = file('csil_deploy_key')
}
}
task deploy << {
ssh.run {
session(remotes.webServer) {
put from: 'build/libs/vrc-project-0.1.jar', into: '/root'
execute 'pkill java && java -jar /root/vrc-project-0.1.jar'
}
}
}