-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
80 lines (68 loc) · 1.91 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
apply plugin: 'distribution'
version = '0.2-SNAPSHOT'
def userHome = System.properties['user.home']
def vimHome = "${userHome}/.vim"
task installVimball(type: Copy) {
group 'vim-gradle'
description 'Installs Gradle syntax highlighting for Vim as Vimball .'
from(projectDir) {
exclude 'build.gradle'
exclude 'build'
exclude 'LICENSE.txt'
exclude 'README.md'
exclude '.gradle'
exclude '**/*.swp'
}
into vimHome
}
task uninstallVimball(type: Delete) {
group 'vim-gradle'
description 'Uninstalls Gradle syntax highlighting Vimball.'
delete "${vimHome}/after/syntax/groovy.vim",
"${vimHome}/compiler/gradle.vim",
"${vimHome}/ctags/gradle.ctags",
"${vimHome}/ctags/groovy.ctags",
"${vimHome}/ftdetect/gradle.vim",
"${vimHome}/ftplugin/tagbar.vim",
"${vimHome}/syntax/gradle.vim"
}
task installBundle(type: Copy) {
group 'vim-gradle'
description 'Installs Gradle syntax highlighting for Vim as bundle.'
from(projectDir) {
exclude 'build.gradle'
exclude 'build'
exclude '.gradle'
exclude '**/*.swp'
}
into "${vimHome}/bundle/vim-gradle"
}
task uninstallBundle(type: Delete) {
group 'vim-gradle'
description 'Uninstalls Gradle syntax highlighting bundle.'
delete "${vimHome}/bundle/vim-gradle"
}
distributions {
main {
contents {
from(projectDir) {
exclude 'build'
exclude '.gradle'
exclude '**/*.swp'
}
}
}
vim {
contents {
baseName = project.name
from(projectDir) {
exclude 'build.gradle'
exclude 'LICENSE.txt'
exclude 'README.md'
exclude 'build'
exclude '.gradle'
exclude '**/*.swp'
}
}
}
}