Please read these guidelines before opening an issue. If you still need to open an issue then we ask that you complete the template as fully as possible.
We welcome pull requests, but ask contributors to keep in mind the following:
- Only PRs with the template completed will be accepted
- We will not accept PRs for user specific functionality
In order for us to accept pull-requests, the contributor must sign-off a Developer Certificate of Origin (DCO). This clarifies the intellectual property license granted with any contribution. It is for your protection as a Contributor as well as the protection of IBM and its customers; it does not change your rights to use your own Contributions for any other purpose.
Please read the agreement and acknowledge it by ticking the appropriate box in the PR text, for example:
- Tick to sign-off your agreement to the Developer Certificate of Origin (DCO) 1.1
The java-cloudant-cache project is written in Java and uses gradle as its build tool and the maven central repository for dependencies.
The project uses the Google Java Style with the following changes:
4.2
Our block indent is +4 characters
4.4
Our line length is 100 characters.
4.5.2
Indent continuation of +4 characters fine, but I think
IDEA defaults to 8, which is okay too.
An IDEA code style matching these guidelines is included in the project,
in the .idea folder.
If you already have the project, to enable the code style follow these steps:
- Go to Preferences -> Editor -> Code Style.
- In the Scheme dropdown, select Project.
IDEA will then use the style when reformatting, refactoring and so on.
- gradle
- Java 1.8
Follow the instructions for your platform.
The project uses the gradle wrapper to download specified version of gradle. The gradle wrapper is run by using the following command:
$ ./gradlewNote: on windows the command to run is gradlew.bat rather than gradlew
The project should build in a cloned repository with:
$ ./gradlew assembleThe tests run as part of Travis CI when branches are pushed to the github repository.
If you want to run the tests locally then note that some tests require additional services:
DatabaseCacheTestsneed an Apache CouchDB instance or Cloudant instance and if it is not athttp://localhost:5789you should set the system propertytest.couch.urlwith the correct url e.g. (http://your.example:1234).RedisCacheTestsrequire a running Redis instance on the default localhost:6379
Run the tests using:
$ ./gradlew test