2017-08-06 01:09:34 +02:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
2017-08-06 01:30:08 +02:00
|
|
|
|
|
|
|
working_directory: ~/circleci-bskyblock
|
2017-08-06 01:09:34 +02:00
|
|
|
|
2017-08-06 01:30:08 +02:00
|
|
|
docker:
|
|
|
|
- image: circleci/openjdk:8-jdk-browsers
|
2017-08-06 01:09:34 +02:00
|
|
|
|
|
|
|
steps:
|
2017-08-06 01:30:08 +02:00
|
|
|
|
2017-08-06 01:09:34 +02:00
|
|
|
- checkout
|
|
|
|
|
|
|
|
- restore_cache:
|
2017-08-06 01:30:08 +02:00
|
|
|
key: circleci-bskyblock-{{ checksum "pom.xml" }}
|
|
|
|
|
2017-08-06 01:09:34 +02:00
|
|
|
- run: mvn dependency:go-offline
|
2017-08-06 01:30:08 +02:00
|
|
|
|
2017-08-06 01:09:34 +02:00
|
|
|
- save_cache:
|
|
|
|
paths:
|
|
|
|
- ~/.m2
|
2017-08-06 01:30:08 +02:00
|
|
|
key: circleci-demo-java-spring-{{ checksum "pom.xml" }}
|
|
|
|
|
|
|
|
- run: mvn clean
|
|
|
|
- run: mvn package
|
|
|
|
- run: mvn install
|
|
|
|
|
|
|
|
- store_artifacts:
|
|
|
|
path: target/bskyblock-alpha-0.0.1.jar
|