File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11version : 2.1
22
33orbs :
4+ ship : auth0/ship@0.7.2
45 codecov : codecov/codecov@3
56
67commands :
@@ -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 :
Original file line number Diff line number Diff line change 11{
22 "files": {
3- "README.md": []
3+ "README.md": [],
4+ "build.gradle": ["version[[:blank:]]*=[[:blank:]]*{MAJOR}.{MINOR}.{PATCH}"]
45 },
56 "prefixVersion": false
6- }
7+ }
Original file line number Diff line number Diff line change 1+ buildscript {
2+ version = " 1.43.0"
3+ }
4+
15plugins {
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+
718repositories {
819 mavenCentral()
920}
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+ }
You can’t perform that action at this time.
0 commit comments