File tree Expand file tree Collapse file tree 3 files changed +33
-1
lines changed
Expand file tree Collapse file tree 3 files changed +33
-1
lines changed Original file line number Diff line number Diff line change 11version : 2.1
22orbs :
3+ ship : auth0/ship@0.7.1
34 codecov : codecov/codecov@3
45
56commands :
@@ -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
Original file line number Diff line number Diff line change 11{
22 "files": {
3- "README.md": []
3+ "README.md": [],
4+ "lib/build.gradle": []
45 },
56 "prefixVersion": false
67}
Original file line number Diff line number Diff line change 1+ buildscript {
2+ version = " 4.0.0"
3+ }
4+
15plugins {
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+
819checkstyle {
920 toolVersion ' 10.0'
1021 checkstyleTest. enabled = false // We are disabling lint checks for tests
@@ -134,3 +145,11 @@ jar {
134145
135146compileModuleInfoJava. dependsOn compileJava
136147classes. 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+ }
You can’t perform that action at this time.
0 commit comments