-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
94 lines (75 loc) · 4.5 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
83
84
85
86
87
88
89
90
91
92
93
94
apply plugin: 'java'
repositories {
jcenter() // 'jcenter' repo for resolving published plug-ins.
maven { url 'https://jitpack.io' } // 'jitpack' repo for unpublished plug-ins.
}
// In this section we declare the plug-ins we wish to download
dependencies {
// 1. Announce Plugin - https://github.com/gitbucket-plugins/gitbucket-announce-plugin
compile 'com.github.gitbucket-plugins:gitbucket-announce-plugin:1.6.0' // jitpack tag version
// compile 'fr.brouillard.gitbucket:gitbucket-announce-plugin:1.6.0' // release version
// 2. H2 Database Backup Plugin - https://github.com/gitbucket-plugins/gitbucket-h2-backup-plugin
// compile 'com.github.gitbucket-plugins:gitbucket-h2-backup-plugin:1.4.0' // jitpack tag version
compile 'com.github.aadrian:gitbucket-h2-backup-plugin:patch_1-SNAPSHOT' // // jitpack PR version
// compile 'fr.brouillard.gitbucket:gitbucket-h2-backup-plugin:1.4.0' // release version
// 3. Desktop notification - https://github.com/yoshiyoshifujii/gitbucket-desktopnotify-plugin
compile 'com.github.yoshiyoshifujii:gitbucket-desktopnotify-plugin:4.10.0' // jitpack tag version
// compile 'me.huzi.gitbucket:gitbucket-desktopnotify-plugin:4.10.0' // release version
// 4. Gist plugin - https://github.com/gitbucket/gitbucket-gist-plugin
compile 'io.github.gitbucket:gitbucket-gist-plugin:4.8.0' // release version (also a correct jitpack tag version)
// 5. Commits graph plugin - https://github.com/yoshiyoshifujii/gitbucket-commitgraphs-plugin
// compile 'me.huzi.gitbucket:gitbucket-commitgraphs-plugin:4.12.0' // release version
compile 'com.github.yoshiyoshifujii:gitbucket-commitgraphs-plugin:4.12.0' // jitpack tag version
// 6. Asciidoc gitbucket plugin - https://github.com/asciidoctor/gitbucket-asciidoctor-plugin
// release version ?? naming tries to be to clever
// compile 'com.github.asciidoctor:gitbucket-asciidoctor-plugin:1.0.2' // jitpack tag version
// 7. Gitbucket Pages plugin - https://github.com/gitbucket/gitbucket-pages-plugin
// compile 'gitbucket:pages-plugin:1.1'// release version
// compile 'com.github.gitbucket:gitbucket-pages-plugin:v1.1' // jitpack tag version
compile 'com.github.aadrian:gitbucket-pages-plugin:patch_2-SNAPSHOT' // jitpack PR version
// 8. Gitbucket network plugin- https://github.com/mrkm4ntr/gitbucket-network-plugin
// compile 'com.github.mrkm4ntr:gitbucket-network-plugin:1.4' // release version
compile 'com.github.mrkm4ntr:gitbucket-network-plugin:1.4' // jitpack tag version
// 9. Explorer plugin - https://github.com/tomoki1207/gitbucket-explorer-plugin
// compile 'io.github.gitbucket:gitbucket-explorer-plugin:3.0.0' // release version
// compile 'com.github.tomoki1207:gitbucket-explorer-plugin:3.0.0' // jitpack tag version
compile 'com.github.aadrian:gitbucket-explorer-plugin:patch_1-SNAPSHOT' // jitpack PR version
// 10. PlantUML plugin - https://github.com/nus/gitbucket-plantuml-plugin
// compile 'com.github.nus:gitbucket-plantuml-plugin:v1.2.0' // jitpack tag version -> this doesn't work: JitPack still seems to have problems
// compile 'com.github.aadrian:gitbucket-plantuml-plugin:lib_updates-SNAPSHOT' // jitpack PR version -> this one doesn't seem to build with JitPack
compile 'com.github.nus:gitbucket-plantuml-plugin:master-SNAPSHOT'
// 11. Monitoring plug-in - https://github.com/YoshinoriN/gitbucket-monitoring-plugin
// compile 'com.github.YoshinoriN:gitbucket-monitorting-plugin:1.0.0' // release version
}
configurations {
compile {
transitive = false // we don't fetch the dependencies of the plug-ins
}
}
def zipName = 'gitbucket-plugins.zip'
def pluginsDir = 'plugins/'
clean {
description 'Cleans all the previously downloaded GitBucket plug-ins!'
// delete 'plugins/' // clean the 'plugins/' directory too
delete pluginsDir // clean the 'plugins/' directory too
delete zipName
}
task getAll(type: Copy, dependsOn: 'clean') {
description 'Downloads all the configured GitBucket plug-ins!'
from configurations.compile
into pluginsDir
}
task makeZip(type: Zip, dependsOn: 'getAll') {
description 'Creates a ZIP of all the configured GitBucket plug-ins!'
from '/'
include '/plugins/*.jar'
// archiveName 'gitbucket-plugins.zip'
archiveName zipName
destinationDir(file('./'))
}
task listAll {
description 'Lists all the configured GitBucket plug-ins!'
doLast {
configurations.compile.each { File file -> println './plugins/'+file.name }
}
}