-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
60 lines (49 loc) · 1.14 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
/**
* @author Aaron R Miller
*/
plugins {
id 'base'
id 'eclipse'
id 'idea'
id 'project-report'
id 'drkstr101.resume'
}
group = 'drkstr101.resume'
version = '1.3.2'
ext {
distDir = file('public')
templateName = 'altacv'
}
document {
inputDirectory = file("template/${templateName}")
}
resume {
fullName = 'Aaron R Miller'
email = 'drkstr101@gmail.com'
}
apply from: file('data/skills.groovy')
apply from: file('data/references.groovy')
apply from: file('data/accomplishments.groovy')
apply from: file('data/employers.groovy')
tasks.register('publishPlugin') {
dependsOn gradle.includedBuild('gradle-resume').task(':publish')
}
tasks.register('publishSkillCloud', Copy) {
from skillCloud
into distDir
rename '(.+)\\.(.+)', "${project.group}.\$1-${project.version}.\$2"
mustRunAfter skillCloud, clean
}
tasks.register('publish') {
group = 'Publishing'
dependsOn build, publishPlugin, publishSkillCloud
}
tasks.register('copyArtifact', Copy) {
from(document.outputDirectory.file('main.pdf')) {
rename 'main.pdf', "${project.group}-${project.version}.pdf"
}
into(file('public'))
}
build {
finalizedBy copyArtifact
}