-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
130 lines (105 loc) · 3.58 KB
/
build.gradle
File metadata and controls
130 lines (105 loc) · 3.58 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.ajoberstar:grgit:1.1.0'
}
}
plugins {
id 'java'
id 'application'
id 'distribution'
id 'fr.brouillard.oss.gradle.jgitver' version '0.8.0'
}
jgitver {
useDistance true
useGitCommitID true
useDirty true
autoIncrementPatch false
}
repositories {
mavenCentral()
}
mainClassName = 'au.edu.uq.rcc.portal.client.PortalClient'
ext {
SPRING_BOOT_VERSION = '2.4.3'
SPRING_SECURITY_VERSION = '5.5.2'
}
sourceCompatibility = 11
targetCompatibility = 11
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
dependencies {
implementation group: 'org.apache.logging.log4j', name: 'log4j-1.2-api', version: '2.15.0'
implementation group: 'net.sourceforge.argparse4j', name: 'argparse4j', version: '0.7.0'
/* Spring dependencies */
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-tomcat', version: SPRING_BOOT_VERSION
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: SPRING_BOOT_VERSION
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-security', version: SPRING_BOOT_VERSION
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-jdbc', version: SPRING_BOOT_VERSION
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version: SPRING_BOOT_VERSION
implementation group: 'org.springframework.security', name: 'spring-security-core', version: SPRING_SECURITY_VERSION
implementation group: 'org.springframework.security', name: 'spring-security-oauth2-client', version: SPRING_SECURITY_VERSION
implementation group: 'org.springframework.security', name: 'spring-security-oauth2-jose', version: SPRING_SECURITY_VERSION
implementation group: 'org.springframework.security', name: 'spring-security-oauth2-resource-server', version: SPRING_SECURITY_VERSION
implementation group: 'org.springframework.session', name: 'spring-session-jdbc', version: '2.2.0.RELEASE'
implementation group: 'com.networknt', name: 'json-schema-validator', version: '1.0.40'
/* Bouncycastle */
implementation group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.64'
implementation group: 'org.bouncycastle', name: 'bcpkix-jdk15on', version: '1.64'
testImplementation 'junit:junit:4.12'
implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '+'
implementation group: 'org.postgresql', name: 'postgresql', version: '42.2.8'
}
distributions {
main {
distZip.enabled false
contents {
eachFile {
if(it.relativePath.segments[-2] == 'lib') {
it.mode = 0644
} else if(it.relativePath.segments[-2] == 'bin') {
it.mode = 0755
}
}
into("etc/${project.name}") {
from('application.sample.yml')
rename('application.sample.yml', 'application.yml')
fileMode 0644
}
into("etc/${project.name}") {
from('logback-spring.xml')
fileMode 0644
}
into("etc/${project.name}") {
from("src/main/resources/au/edu/uq/rcc/portal/client/schema.sql")
fileMode 0644
}
}
}
deb {
debDistZip.enabled false
debDistTar.enabled false
contents {
into("usr/share/${project.name}") {
with distributions.main.contents
}
into("etc/${project.name}") {
from('application.sample.yml')
rename('application.sample.yml', 'application.yml')
fileMode 0644
}
into("etc/${project.name}") {
from('logback-spring.xml')
fileMode 0644
}
}
}
}
distTar {
compression Compression.GZIP
extension 'tar.gz' /* Not .tgz */
}
installDebDist {
destinationDir = new File("debian/${project.name}")
}