Skip to content

Commit 75a0bc0

Browse files
Add integration with our Shipping orb
1 parent 5237c3f commit 75a0bc0

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-1
lines changed

.circleci/config.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
version: 2.1
22
orbs:
3+
ship: auth0/ship@0.7.1
34
codecov: codecov/codecov@3
45

56
commands:
@@ -56,6 +57,17 @@ workflows:
5657
build-and-test:
5758
jobs:
5859
- build
60+
- ship/java-publish:
61+
prefix-tag: false
62+
context:
63+
- publish-gh
64+
- publish-sonatype
65+
filters:
66+
branches:
67+
only:
68+
- master
69+
requires:
70+
- build
5971
# api-diff:
6072
# jobs:
6173
# - api-diff

.shiprc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"files": {
3-
"README.md": []
3+
"README.md": [],
4+
"lib/build.gradle": []
45
},
56
"prefixVersion": false
67
}

lib/build.gradle

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
1+
buildscript {
2+
version = "4.0.0"
3+
}
4+
15
plugins {
26
id 'java'
37
id 'jacoco'
48
id 'com.auth0.gradle.oss-library.java'
59
id 'checkstyle'
610
}
711

12+
def signingKey = findProperty('SIGNING_KEY')
13+
def signingKeyPwd = findProperty('SIGNING_PASSWORD')
14+
15+
signing {
16+
useInMemoryPgpKeys(signingKey, signingKeyPwd)
17+
}
18+
819
checkstyle {
920
toolVersion '10.0'
1021
checkstyleTest.enabled = false //We are disabling lint checks for tests
@@ -134,3 +145,11 @@ jar {
134145

135146
compileModuleInfoJava.dependsOn compileJava
136147
classes.dependsOn compileModuleInfoJava
148+
149+
// Creates a version.txt file containing the current version of the SDK.
150+
// This file is picked up and parsed by our Ship Orb to determine the version.
151+
task exportVersion() {
152+
doLast {
153+
new File(rootDir, "version.txt").text = "$version"
154+
}
155+
}

0 commit comments

Comments
 (0)