Skip to content

Commit

Permalink
Add Ship CLI and orb to v3 (#618)
Browse files Browse the repository at this point in the history
* Add Ship CLI and orb to v3

* update oss plugin version
  • Loading branch information
jimmyjames authored Oct 19, 2022
1 parent 1f0d65f commit c154c46
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 5 deletions.
19 changes: 15 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
version: 2.1
orbs:
ship: auth0/[email protected]
codecov: codecov/codecov@3

commands:
checkout-and-build:
Expand All @@ -19,10 +22,7 @@ commands:
run-tests:
steps:
- run: ./gradlew check jacocoTestReport --continue --console=plain
- run:
name: Upload Coverage
when: on_success
command: bash <(curl -s https://codecov.io/bash) -Z -C $CIRCLE_SHA1
- codecov/upload
run-api-diff:
steps:
# run apiDiff task
Expand Down Expand Up @@ -58,6 +58,17 @@ workflows:
build-and-test:
jobs:
- build
- ship/java-publish:
prefix-tag: false
context:
- publish-gh
- publish-sonatype
filters:
branches:
only:
- v3
requires:
- build
api-diff:
jobs:
- api-diff
7 changes: 7 additions & 0 deletions .shiprc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"files": {
"README.md": [],
"lib/build.gradle": ["version[[:blank:]]*=[[:blank:]]*{MAJOR}.{MINOR}.{PATCH}"]
},
"prefixVersion": false
}
21 changes: 21 additions & 0 deletions lib/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@

buildscript {
version = "3.19.2"
}

plugins {
id 'java'
id 'jacoco'
id 'com.auth0.gradle.oss-library.java'
}

def signingKey = findProperty('signingKey')
def signingKeyPwd = findProperty('signingPassword')

signing {
useInMemoryPgpKeys(signingKey, signingKeyPwd)
}

logger.lifecycle("Using version ${version} for ${group}.${name}")

oss {
Expand All @@ -12,6 +24,7 @@ oss {
organization "auth0"
description "Java implementation of JSON Web Token (JWT)"
baselineCompareVersion "3.18.2"
skipAssertSigningConfiguration true

developers {
auth0 {
Expand Down Expand Up @@ -93,3 +106,11 @@ jar {

compileModuleInfoJava.dependsOn compileJava
classes.dependsOn compileModuleInfoJava

// Creates a version.txt file containing the current version of the SDK.
// This file is picked up and parsed by our Ship Orb to determine the version.
task exportVersion() {
doLast {
new File(rootDir, "version.txt").text = "$version"
}
}
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pluginManagement {
gradlePluginPortal()
}
plugins {
id 'com.auth0.gradle.oss-library.java' version '0.16.0'
id 'com.auth0.gradle.oss-library.java' version '0.17.2'
}
}

Expand Down

0 comments on commit c154c46

Please sign in to comment.