Skip to content

Commit 76e6d50

Browse files
authored
Merge pull request #159 from auth0/use-ship
Integrate ship and ship-orb
2 parents 2ea451c + 0d09f8c commit 76e6d50

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

.circleci/config.yml

+13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
version: 2.1
22

33
orbs:
4+
ship: auth0/[email protected]
45
codecov: codecov/codecov@3
56

67
commands:
@@ -58,6 +59,18 @@ workflows:
5859
build-and-test:
5960
jobs:
6061
- build
62+
- ship/java-publish:
63+
jdk-version: '8.0'
64+
prefix-tag: false
65+
context:
66+
- publish-gh
67+
- publish-sonatype
68+
filters:
69+
branches:
70+
only:
71+
- master
72+
requires:
73+
- build
6174
api-diff:
6275
jobs:
6376
- api-diff

.shiprc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"files": {
3-
"README.md": []
3+
"README.md": [],
4+
"build.gradle": ["version[[:blank:]]*=[[:blank:]]*{MAJOR}.{MINOR}.{PATCH}"]
45
},
56
"prefixVersion": false
67
}

build.gradle

+21
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
1+
buildscript {
2+
version = "0.21.2"
3+
}
4+
15
plugins {
26
id 'java'
37
id 'jacoco'
48
id 'com.auth0.gradle.oss-library.java'
59
}
10+
11+
def signingKey = findProperty('signingKey')
12+
def signingKeyPwd = findProperty('signingPassword')
13+
14+
signing {
15+
useInMemoryPgpKeys(signingKey, signingKeyPwd)
16+
}
17+
618
group = 'com.auth0'
719

820
logger.lifecycle("Using version ${version} for ${name} group $group")
@@ -13,6 +25,7 @@ oss {
1325
organization 'auth0'
1426
description 'JSON Web Key Set parser library'
1527
baselineCompareVersion '0.15.0'
28+
skipAssertSigningConfiguration true
1629

1730
developers {
1831
auth0 {
@@ -66,3 +79,11 @@ dependencies {
6679
testImplementation group: 'org.mockito', name: 'mockito-core', version:'1.10.19'
6780
testImplementation group: 'org.hamcrest', name: 'hamcrest-library', version:'1.3'
6881
}
82+
83+
// Creates a version.txt file containing the current version of the SDK.
84+
// This file is picked up and parsed by our Ship Orb to determine the version.
85+
task exportVersion() {
86+
doLast {
87+
new File(rootDir, "version.txt").text = "$version"
88+
}
89+
}

0 commit comments

Comments
 (0)