-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
82 lines (66 loc) · 2.2 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
buildscript {
dependencies {
classpath(
'org.springframework.boot:spring-boot-gradle-plugin:1.3.5.RELEASE'
)
}
}
plugins {
id "nebula.ospackage" version "3.4.0"
}
apply plugin: 'java'
apply plugin: 'spring-boot'
group = 'org.bahmni.batch'
version = '2.4.2'
description = "Bahmni Batch for EndTB exports"
sourceCompatibility = 1.7
targetCompatibility = 1.7
repositories {
jcenter()
}
dependencies {
compile group: 'org.springframework.boot', name: 'spring-boot-starter-batch', version: '1.3.4.RELEASE'
compile group: 'org.springframework.batch', name: 'spring-batch-test', version: '3.0.7.RELEASE'
compile group: 'org.springframework', name: 'spring-test', version: '4.2.6.RELEASE'
compile group: 'org.hsqldb', name: 'hsqldb', version: '2.3.3'
compile group: 'mysql', name: 'mysql-connector-java', version: '5.1.35'
compile group: 'commons-dbcp', name: 'commons-dbcp', version: '1.4'
compile group: 'commons-io', name: 'commons-io', version: '2.0.1'
compile 'commons-lang:commons-lang:2.6'
compile group: 'org.freemarker', name: 'freemarker', version: '2.3.23'
compile group: 'org.springframework', name: 'spring-context-support', version: '4.2.6.RELEASE'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.mockito', name: 'mockito-core', version: '1.10.19'
}
jar {
manifest {
attributes 'Main-Class': 'org.bahmni.batch.Application'
}
}
ospackage {
packageName = 'bahmni-endtb-batch'
release = project.hasProperty('buildNumber') ? project.getProperty('buildNumber') : 1
arch = NOARCH
os = LINUX
user = 'root'
into '/opt/bahmni-batch'
from("${projectDir}/scripts/rpm/") {
fileMode = 0755
createDirectoryEntry = true
into '/opt/bahmni-batch/bin'
}
from("${buildDir}/libs") {
fileMode = 0755
createDirectoryEntry = true
into "/opt/bahmni-batch/libs"
}
}
buildRpm {
dependsOn "build", "jar"
requires("cronie")
postInstall file("${projectDir}/scripts/postinstall.sh")
postUninstall file("${projectDir}/scripts/postuninstall.sh")
}
task wrapper(type: Wrapper) {
gradleVersion = '2.13'
}