Semantic versioning is not applied. MOTIS API Java Client matches versioning of the MOTIS itself. Major, minor, and patch version correspond to the release of MOTIS openapi.yaml, and forth number is iteration of releases for given MOTIS version.
The code is generated from the MOTIS openapi specfication. Git submodule ext/motis links the MOTIS project at the time of code generation.
In order to sync local MOTIS repo with the commit specified in project, run
git submodule update --init --recursiveIn order to download latest MOTIS changes, run
git submodule foreach git pull origin masterTo generate code based on the current ext/motis/openapi.yaml, run
gradle openApiGenerateOnce the code is generated, you can build it using Gradle.
gradle buildThis project is configured to publish to GitHub Packages. To publish manually:
-
Set up environment variables:
export GITHUB_USERNAME=your-github-username export GITHUB_TOKEN=your-github-personal-access-token
-
Run the publish task:
./gradlew publish
You need a GitHub Personal Access Token with the following permissions:
write:packagesread:packages
Generate one at: https://github.com/settings/tokens
The project includes a GitHub Actions workflow that automatically publishes:
- On pushes to the
masterbranch - When a new release is created
To use this package in another project, add the following to your build.gradle:
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/bileto/motis-java-client")
credentials {
username = System.getenv("GITHUB_USERNAME") ?: project.findProperty("gpr.user")
password = System.getenv("GITHUB_TOKEN") ?: project.findProperty("gpr.key")
}
}
}
dependencies {
implementation 'dev.bileto:motis-java-client:1.2.3.4'
}