This example demonstrates how to fetch Orchestra specifications from a remote repository.
Orchestra Hub is a public platform where organizations can share their Orchestra specifications with the broader community, access specifications published by others, and collaborate on standardization efforts.
The plugin enables users to fetch a specification from the repository, create derived versions, and generate artifacts like code libraries and schemas to simplify application integration.
Note: Orchestra Hub supports versioning, allowing users to update their applications by simply adjusting the version number specified in their build files whenever a new version of a specification is published.
Specify the name
and version
of the specification in the build.gradle file using the repository
extension.
orchestra {
specification {
repository orchestraHub(name: 'fix-latest', version: 'ep292')
}
}
Use the Gradle wrapper to run the example.
$ ./gradlew :basic-examples:01-orchestra-hub:runExample
Note:
runExample
is wired to call theorchestraBuildSpec
task from the Orchestra plugin.
The specification will be output to the Gradle build folder.
$ ./basic-examples/01-orchestra-hub/build/orchestra/specification/01-orchestra-hub.xml
You can search and explore the specification in Orchimate, loading it with "Add Local Spec".