To run the project locally, clone the repository and install the dependencies.
git clone https://github.com/amadeus4dev/amadeus-java.git
cd amadeus-java
gradle
Make sure you have Gradle installed as well.
This library uses Lombok for simplifying the code base. To use this in your editor, make sure to follow the instructions on their site.
For example, for InteliJ follow these instructions.
To run tests, simply run ./gradlew test
We are trying to keep 100% coverage, so keep an eye on the coverage
folder for an overview of the coverage.
To build the jar run ./gradlew clean build
It is necessary to review the Code Coverage
./gradlew clean build jacocoTestReport
To use a library locally as a dependency, simply link to this library in your Gradle project by path:
compile files('/path/to/libs/amadeus-java-1.0.1-SNAPSHOT.jar')
To make a new release, follow the following steps:
- Update the version in
Amadeus.java
using semver rules - Update the version in
AmadeusTest.java
- Update the version in
gradle.properties
- Update the
CHANGELOG.md
with the new version - Update the version in
README.md
for Maven and Gradle - Push all changes and ensure all tests pass on GitHub Actions
- Draft a new release by creating a tag and copying the description from the
CHANGELOG.md
GitHub Actions will now build the library and release it to Maven Central.
-
Ensure the bug was not already reported by searching on GitHub under Issues.
-
If you're unable to find an open issue addressing the problem, open a new one. Be sure to include a title and clear description, as much relevant information as possible, and a code sample or an executable test case demonstrating the expected behavior that is not occurring.
-
Open a new GitHub pull request with the patch.
-
Ensure the PR description clearly describes the problem and solution. Include the relevant issue number if applicable.
-
Suggest your change in a new issue and start writing code.
-
Make sure your new code does not break any tests and include new tests.
-
With good code comes good documentation. Try to copy the existing documentation and adapt it to your needs.
-
Close the issue or mark it as inactive if you decide to discontinue working on the code.
- Ask any question about how to use the library by raising a new issue.
Excellent, to get start developing this library ensure you have Java 7+ installed and clone the repository.
Then, you should be able to create the docs.
./gradlew javadoc