This is an example of GitBucket plug-in. This plug-in provides code snippet repository like Gist.
Plugin version | GitBucket version |
---|---|
4.7.x | 4.11.x |
4.6.x | 4.10.x |
4.5.x | 4.9.x |
4.4.x | 4.8.x |
4.2.x, 4.3.x | 4.2.x, 4.3.x, 4.4.x, 4.5.x, 4.6.x, 4.7.x |
4.0.x | 4.0.x, 4.1.x |
3.13.x | 3.13.x |
3.12.x | 3.12.x |
3.11.x | 3.11.x |
3.10.x | 3.10.x |
3.7.x | 3.7.x, 3.8.x, 3.9.x |
3.6.x | 3.6.x |
Download jar file from the release page and put into GITBUCKET_HOME/plugins
.
Note: If you had used this plugin with GitBucket 3.x, it does not work after upgrading to GitBucket 4.x. Solution is below:
UPDATE VERSIONS SET VERSION='2.0.0' WHERE MODULE_ID='gist';
- restart gitbucket
- can open snippets page
SELECT VERSION FROM VERSIONS WHERE MODULE_ID='gist'
->4.2.0
See Connect to H2 database to know how to execute SQL on the GitBucket database.
- Hit
./sbt.sh package
in the root directory of this repository. - Copy
target/scala-2.11/gitbucket-gist-plugin_2.11-x.x.x.jar
intoGITBUCKET_HOME/plugins
. - Restart GitBucket.