Spring PetClinic Sample Application
This is an example application showcasing how to run a Java app on CircleCI 2.1. This application uses the Spring PetClinic sample project. This readme includes pared down sample configs for different CircleCI features, including workspace, dependency caching, and parallelism.
To see how these steps would be configured in a 2.0 config, please check out the master branch.
Sample configurations: version 2.1
A basic build with an orb
version: 2.1
orbs:
maven: circleci/[email protected]
workflows:
maven_test:
jobs:
- maven/test # checkout, build, test, and upload test results
This config uses the language-specific orb to replace any executors, build tools, and commands available.
Here we are using the maven orb, which simplifies building and testing Java projects using Maven.
The maven/test
command checks out the code, builds, tests, and uploads the test result.
The parameters of this command can be customized. See the maven orb docs for more information.