Java Wrapper for Trello API
This project is a Java Wrapper for the Trello API. It provides a fluent interface for requesting the API
trello-java-wrapper is available on maven central. The current release is 0.4
<dependency>
<groupId>com.julienvey.trello</groupId>
<artifactId>trello-java-wrapper</artifactId>
<version>0.4</version>
</dependency>
To be able to use the wrapper, you simply need to instantiate the interface Trello
and provide it with two parameters
- trelloKey : The key of your application
- trelloAccessToken : the oauth token of the authenticated user on Trello
Trello trelloApi = new TrelloImpl(trelloKey, trelloAccessToken);
Then, simply use the object you just created to access the API
Board board = trelloApi.getBoard(trelloBoardForAddingCardsId);
The wrapper provides a fluent interface. On each "Trello" Object, you have access to methods to fetch other object
Board board = trelloApi.getBoard(trelloBoardForAddingCardsId);
List<TList> lists = board.fetchLists();
which can also be written like this
List<TList> lists = trelloApi.getBoard(trelloBoardForAddingCardsId).fetchLists();
trello-java-wrapper is still a work in progress and has not yet reached version 1.0. It is licensed under the Apache v2 License.
If you are missing some fonctionnalities, you can easily contribute and propose a pull request. Each pull request should respect current code conventions and also provide tests for the newly implemented features.
###Setting up settings.xml for release
Remove 'SNAPSHOT' in pom.xml:
<version>0.5-SNAPSHOT</version>
Add credentials in ~/.m2/settings.xml:
<settings>
<servers>
<server>
<id>artifactory.internal</id>
<username>admin</username>
<password>password</password>
</server>
<server>
<id>artifactory.snapshots</id>
<username>admin</username>
<password>password</password>
</server>
</servers>
</settings>
Upload to repo:
% mvn deploy
Bump version and add SNAPSHOT again:
<version>0.n+1-SNAPSHOT</version>