File tree Expand file tree Collapse file tree 2 files changed +54
-8
lines changed Expand file tree Collapse file tree 2 files changed +54
-8
lines changed Original file line number Diff line number Diff line change 1- version :
1+ version : 2
22jobs :
33 build :
44
@@ -12,16 +12,51 @@ jobs:
1212 - checkout
1313
1414 - restore_cache :
15- key : cassandra-java-driver-kerberos-{{ checksum "pom.xml" }}
15+ keys :
16+ - m2-{{ checksum "pom.xml" }}
17+ - m2-
1618
17- - run : mvn dependency:go-offline # gets the project dependencies
19+ - run : mvn clean install -DoutputDirectory=/tmp/artifacts
1820
1921 - save_cache :
2022 paths :
2123 - ~/.m2
22- key : cassandra-java-driver-kerberos-{{ checksum "pom.xml" }}
23-
24- - run : mvn clean install
24+ key : m2-{{ checksum "pom.xml" }}
2525
2626 - store_artifacts :
27- path : ~/cassandra-java-driver-kerberos/target/cassandra-driver-kerberos.jar
27+ path : /tmp/artifacts
28+
29+ - persist_to_workspace :
30+ root : /tmp/artifacts
31+ paths :
32+ - cassandra-driver-kerberos.jar
33+
34+ publish-github-release :
35+ docker :
36+ - image : circleci/golang
37+ steps :
38+ - attach_workspace :
39+ at : ./artifacts
40+ - run :
41+ name : " Publish Release on GitHub"
42+ command : |
43+ set -xue
44+ go get github.com/tcnksm/ghr
45+ ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} ./artifacts/
46+
47+ workflows :
48+ version : 2
49+ build :
50+ jobs :
51+ - build :
52+ filters :
53+ tags :
54+ only : /^v\d+\.\d+\.\d+$/
55+ - publish-github-release :
56+ requires :
57+ - build
58+ filters :
59+ branches :
60+ ignore : /.*/
61+ tags :
62+ only : /^v\d+\.\d+\.\d+$/
Original file line number Diff line number Diff line change 4949 <version .maven.source.plugin>3.0.1</version .maven.source.plugin>
5050 <version .maven.javadoc.plugin>3.1.0</version .maven.javadoc.plugin>
5151 <version .maven.gpg.plugin>1.6</version .maven.gpg.plugin>
52+ <maven .jar.plugin.version>3.1.1</maven .jar.plugin.version>
5253 <version .nexus.staging.maven.plugin>1.6.8</version .nexus.staging.maven.plugin>
53-
54+
55+ <outputDirectory >${project.build.directory}</outputDirectory >
56+
5457 <maven .compiler.source>1.8</maven .compiler.source>
5558 <maven .compiler.target>1.8</maven .compiler.target>
5659
7881 <target >${maven.compiler.target} </target >
7982 </configuration >
8083 </plugin >
84+ <plugin >
85+ <groupId >org.apache.maven.plugins</groupId >
86+ <artifactId >maven-jar-plugin</artifactId >
87+ <version >${maven.jar.plugin.version} </version >
88+ <configuration >
89+ <outputDirectory >${outputDirectory} </outputDirectory >
90+ </configuration >
91+ </plugin >
8192 </plugins >
8293 </build >
8394
You can’t perform that action at this time.
0 commit comments