This repository has been archived by the owner on Jun 21, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
97 lines (77 loc) · 2.47 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
95
96
97
/*
* matrix-appservice-email - Matrix Bridge to E-mail
* Copyright (C) 2017 Kamax Sarl
*
* https://www.kamax.io/
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'docker'
group = 'kamax'
def configFile = "src/main/resources/application.yaml"
def distBinDir = "${project.buildDir.absolutePath}/dist/bin"
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.springframework.boot:spring-boot-gradle-plugin:1.5.3.RELEASE'
classpath 'se.transmode.gradle:gradle-docker:1.2'
}
}
repositories {
mavenCentral()
maven { url "https://kamax.io/maven/releases" }
maven { url "https://kamax.io/maven/snapshots" }
}
dependencies {
compile 'io.kamax:matrix-java-sdk:0.0.1-bridge-email'
// Spring Boot - standalone app
compile 'org.springframework.boot:spring-boot-starter-web:1.5.3.RELEASE'
compile "org.springframework.boot:spring-boot-starter-thymeleaf"
compile 'commons-lang:commons-lang:2.6'
compile 'com.sun.mail:javax.mail:1.5.6'
compile 'javax.mail:javax.mail-api:1.5.6'
compile 'org.xerial:sqlite-jdbc:3.15.1'
compile 'org.jsoup:jsoup:1.10.2'
testCompile 'org.springframework.boot:spring-boot-starter-test'
}
springBoot {
executable = true
embeddedLaunchScriptProperties = [
confFolder: "/etc/default"
]
}
task buildBin(type: Copy, dependsOn: ['build']) {
from jar
into distBinDir
doLast {
project.exec {
commandLine('chmod', 'a+x', "${distBinDir}/${jar.archiveName}")
}
}
}
task buildDocker(type: Docker, dependsOn: build) {
push = false
applicationName = "mxasd-email"
dockerfile = file('src/main/docker/Dockerfile')
doFirst {
copy {
from jar
into stageDir
}
}
}