Skip to content

Commit

Permalink
Add mvn support (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanokwa authored and lognaturel committed Feb 20, 2018
1 parent 1cc79f5 commit 760fb57
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,31 @@ jobs:
path: build/libs
destination: libs
- store_test_results:
path: build/test-results
path: build/test-results
package:
working_directory: ~/work
docker:
- image: circleci/openjdk:latest
steps:
- checkout
- restore_cache:
key: m2-{{ checksum "pom.xml" }}
- run: mvn package
- save_cache:
paths:
- ~/.m2
key: m2-{{ checksum "pom.xml" }}
- store_artifacts:
path: target/apidocs
destination: apidocs
- store_artifacts:
path: target/libs
destination: libs
- store_test_results:
path: target/surefire-reports
workflows:
version: 2
build_and_package:
jobs:
- build
- package
26 changes: 26 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,32 @@
</execution>
</executions>
</plugin>
<!-- Used to put the jar in a useful place for CircleCI -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.0.2</version>
<executions>
<execution>
<id>copy-installed</id>
<phase>package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<type>${project.packaging}</type>
</artifactItem>
</artifactItems>
<outputDirectory>target/libs</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
Expand Down

0 comments on commit 760fb57

Please sign in to comment.