Skip to content

Commit 1797f78

Browse files
committed
Preparing for CircleCI pipeline
1 parent d21ea08 commit 1797f78

File tree

2 files changed

+78
-0
lines changed

2 files changed

+78
-0
lines changed

.circleci/config.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
version: 2.1
2+
3+
orbs:
4+
github-maven-deploy: github-maven-deploy/[email protected]
5+
6+
mvn-build-test-command: &mvn-build-test-command
7+
mvn-build-test-command: mvn verify -Dmaven.javadoc.skip=true
8+
9+
mvn-deploy-command: &mvn-deploy-command
10+
mvn-deploy-command: |
11+
mvn -s .circleci/maven-release-settings.xml clean deploy -DdeployAtEnd=true -DperformRelease=true -DskipTests -Dspotbugs.skip=true -Denforcer.skip=true -Djacoco.skip=true
12+
mvn license:remove
13+
context: RELEASE_PROFILE_BBOTTEMA
14+
15+
workflows:
16+
workflow:
17+
jobs:
18+
- github-maven-deploy/build-and-test:
19+
<<: *mvn-build-test-command
20+
filters:
21+
branches:
22+
only: master
23+
24+
- github-maven-deploy/approve-deploy-patch-version:
25+
type: approval
26+
requires:
27+
- github-maven-deploy/build-and-test
28+
- github-maven-deploy/approve-deploy-minor-version:
29+
type: approval
30+
requires:
31+
- github-maven-deploy/build-and-test
32+
- github-maven-deploy/approve-deploy-major-version:
33+
type: approval
34+
requires:
35+
- github-maven-deploy/build-and-test
36+
- github-maven-deploy/approve-deploy-as-is-version:
37+
type: approval
38+
requires:
39+
- github-maven-deploy/build-and-test
40+
41+
- github-maven-deploy/deploy-patch-version:
42+
requires:
43+
- github-maven-deploy/approve-deploy-patch-version
44+
<<: *mvn-deploy-command
45+
- github-maven-deploy/deploy-minor-version:
46+
requires:
47+
- github-maven-deploy/approve-deploy-minor-version
48+
<<: *mvn-deploy-command
49+
- github-maven-deploy/deploy-major-version:
50+
requires:
51+
- github-maven-deploy/approve-deploy-major-version
52+
<<: *mvn-deploy-command
53+
- github-maven-deploy/deploy-as-is-version:
54+
requires:
55+
- github-maven-deploy/approve-deploy-as-is-version
56+
<<: *mvn-deploy-command
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
2+
<servers>
3+
<server>
4+
<id>ossrh</id>
5+
<username>${env.SERVER_OSSRH_USERNAME}</username>
6+
<password>${env.SERVER_OSSRH_PASSWORD}</password>
7+
</server>
8+
</servers>
9+
10+
<profiles>
11+
<profile>
12+
<id>gpg</id>
13+
<properties>
14+
<gpg.executable>gpg</gpg.executable>
15+
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
16+
</properties>
17+
</profile>
18+
</profiles>
19+
<activeProfiles>
20+
<activeProfile>gpg</activeProfile>
21+
</activeProfiles>
22+
</settings>

0 commit comments

Comments
 (0)