Skip to content

Commit 7ffcbe7

Browse files
authored
Integrate ship orb (#458)
1 parent eed36c7 commit 7ffcbe7

3 files changed

Lines changed: 36 additions & 2 deletions

File tree

.circleci/config.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
version: 2.1
22

33
orbs:
4+
ship: auth0/ship@0.7.2
45
codecov: codecov/codecov@3
56

67
commands:
@@ -61,6 +62,18 @@ workflows:
6162
build-and-test:
6263
jobs:
6364
- build
65+
- ship/java-publish:
66+
jdk-version: '8.0'
67+
prefix-tag: false
68+
context:
69+
- publish-gh
70+
- publish-sonatype
71+
filters:
72+
branches:
73+
only:
74+
- master
75+
requires:
76+
- build
6477

6578
api-diff:
6679
jobs:

.shiprc

Lines changed: 3 additions & 2 deletions
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
6-
}
7+
}

build.gradle

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

11+
def signingKey = findProperty('signingKey')
12+
def signingKeyPwd = findProperty('signingPassword')
13+
14+
signing {
15+
useInMemoryPgpKeys(signingKey, signingKeyPwd)
16+
}
17+
718
repositories {
819
mavenCentral()
920
}
@@ -17,6 +28,7 @@ oss {
1728
organization 'auth0'
1829
description 'Java client library for the Auth0 platform.'
1930
baselineCompareVersion '1.27.0'
31+
skipAssertSigningConfiguration true
2032

2133
developers {
2234
auth0 {
@@ -80,3 +92,11 @@ dependencies {
8092
testImplementation "org.hamcrest:hamcrest-library:${hamcrestVersion}"
8193
testImplementation "junit:junit:4.13.1"
8294
}
95+
96+
// Creates a version.txt file containing the current version of the SDK.
97+
// This file is picked up and parsed by our Ship Orb to determine the version.
98+
task exportVersion() {
99+
doLast {
100+
new File(rootDir, "version.txt").text = "$version"
101+
}
102+
}

0 commit comments

Comments
 (0)