SDK itself is generated from Outscale's OpenAPI description. Any change directly applied to source code will be overwritten at generation time.
Examples and tests are welcome!
This SDK follows semantic versioning from the SDK perspective (not API). Some events may trigger a major (breaking) version of the SDK:
- OpenAPI generator introduce a new major version.
- Outscale introduce a new major version of its API.
When OpenAPI generator introduce a breaking change, SDK can be generated in several versions (see corresponding branches).
- Have some tools ready: GNU make, git, docker.
- Edit
api_version
file and to the latest Outscale API version. - Edit
sdk_version
file and change it according to semantic versioning. - Launch sdk generation by running
make gen
.
Under the hood it get official Outscale yaml and run openapi-generator through docker.
If you plan to make some change in source code, consider making a pull request in openapi-generator project.
Otherwise:
- Your merge request must be rebased on the latest commit.
- Be sure that tests still pass by running
make test
.
Gitub bot should have produced a new version and creating the new release tag should push release to crate.io.
If this is not the case:
- Be sure have the latest version from repository.
- Update
api_version
to the last Outscale API version. - Update
sdk_version
following semantic versioning logic. make gen
to re-build the sdk.make test
and fix any issue.- Commit changes.
- Create PR.
- Review and merge PR.
- Create and push new sdk version tag.
- Create new release from tag.
- Import gpg key
gpg --import <FILE>
- Set gpg key as default if multiple in the computer,
~/.gnupg/gpg.conf
The fingerprint can be retrieved usingdefault-key <FINGERPRINT>
gpg --list-keys
- Add credentials to the nexus server,
~/.m2/settings.xml
<settings> <servers> <server> <id>ossrh</id> <username>USERNAME</username> <password>PASSWORD</password> </server> </servers> </settings>
mvn deploy
- In case of failure during the publish, check https://s01.oss.sonatype.org/ (login using sonatype-ci credentials)
- Check https://central.sonatype.com/artifact/io.github.outscale/osc-sdk-java after few hours
Check this site for deploying using sonatype: https://central.sonatype.org/publish/