Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add integration with our Shipping orb #612

Merged
merged 1 commit into from
Oct 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
version: 2.1
orbs:
ship: auth0/ship@0.7.1
codecov: codecov/codecov@3

commands:
Expand Down Expand Up @@ -56,6 +57,17 @@ workflows:
build-and-test:
jobs:
- build
- ship/java-publish:
prefix-tag: false
context:
- publish-gh
- publish-sonatype
filters:
branches:
only:
- master
requires:
- build
# api-diff:
# jobs:
# - api-diff
3 changes: 2 additions & 1 deletion .shiprc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"files": {
"README.md": []
"README.md": [],
"lib/build.gradle": []
},
"prefixVersion": false
}
19 changes: 19 additions & 0 deletions lib/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
buildscript {
version = "4.0.0"
}

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

def signingKey = findProperty('SIGNING_KEY')
def signingKeyPwd = findProperty('SIGNING_PASSWORD')

signing {
useInMemoryPgpKeys(signingKey, signingKeyPwd)
}

checkstyle {
toolVersion '10.0'
checkstyleTest.enabled = false //We are disabling lint checks for tests
Expand Down Expand Up @@ -134,3 +145,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"
}
}