This directory contains the source code for the Bitbucket Webhook Library for Java.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
The parent Maven project consists of the following modules:
- webhook – core library,
- example – example web application that uses the library,
- example-servlet – the same web application for Servlet-only containers, and
- example-standalone – the same web application packaged as an executable jar file with Jetty.
Configuring the example web application
The example web application can be configured with Bitbucket OAuth client credentials by Java system properties or by environment variables. If is is configured with the client credentials, a Login item will appear at the top-right corner of the web pages and users can log in with their Bitbucket accounts, though they can do nothing but log in.
To configure the client credentials by Java system properties, set
org.vx68k.bitbucket.webhook.example.oauth.clientId to the client identifier
(consumer key) and
the corresponding client secret (consumer secret).
If you do not set the Java system properties, the values of environment
be used as the client credentials instead, and they would be useful if you
cannot set Java system properties for the web application.