-
Notifications
You must be signed in to change notification settings - Fork 74
/
build.gradle
61 lines (49 loc) · 1.36 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
def releaseVersion = "5.2.4-SNAPSHOT"
def targetDirBase = './release/' + releaseVersion + '/'
def targetDir = targetDirBase + "/websoccer"
def targetUpdateDir = targetDirBase + '/update/websoccer'
task release << {
println 'Starting release. Make sure you disabled DEBUG mode in software.'
}
release << {
versionfile = new File('./websoccer/admin/config/version.txt')
versionfile.text = releaseVersion
println 'Updated version file'
}
release << {
copy {
from './websoccer'
into targetDir
exclude '.gradle'
exclude '.settings'
exclude '.buildpath'
exclude '.project'
exclude 'dberrorlog.txt'
exclude 'admin/dberrorlog.txt'
exclude 'build.gradle'
exclude 'cache/*'
exclude 'update'
exclude 'uploads/club/*'
exclude 'uploads/cup/*'
exclude 'uploads/player/*'
exclude 'uploads/sponsor/*'
exclude 'uploads/stadiumbuilder/*'
exclude 'uploads/stadium/*'
exclude 'uploads/stadiumbuilding/*'
exclude 'uploads/users/*'
exclude 'generated/*'
}
println 'Copied files'
}
release << {
copy {
from './websoccer'
include 'classes/**'
include 'admin/config/version.txt'
include 'update/**'
into targetUpdateDir
}
println 'Copied files for update'
}
task build(dependsOn: release) {
}