Skip to content
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
7 changes: 7 additions & 0 deletions .circleci/.shiprc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"files": {
"README.md": [],
"lib/build.gradle": ["version = \"{MAJOR}.{MINOR}.{PATCH}\""]
},
"prefixVersion": false
}
17 changes: 16 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version: 2.1

orbs:
ship: auth0/ship@0
codecov: codecov/codecov@3

jobs:
Expand Down Expand Up @@ -32,4 +33,18 @@ jobs:
paths:
- ~/.m2
key: v1-dependencies-{{ checksum "lib/build.gradle" }}

workflows:
build-and-test:
jobs:
- build
- ship/java-publish:
prefix-tag: false
context:
- publish-gh
- publish-sonatype
filters:
branches:
only:
- master
requires:
- build
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
buildscript {
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.auth0.gradle:oss-library:0.16.0'
classpath 'com.auth0.gradle:oss-library:0.17.2'
}
}

allprojects {
group = 'com.auth0'

repositories {
jcenter()
mavenCentral()
}
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
53 changes: 33 additions & 20 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 24 additions & 19 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions lib/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
buildscript {
version = "1.5.1"
}

apply plugin: 'idea'
apply plugin: 'com.auth0.gradle.oss-library.java'
apply plugin: 'jacoco'

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

signing {
useInMemoryPgpKeys(signingKey, signingKeyPwd)
}

oss {
name 'auth0-spring-security-api'
repository 'auth0-spring-security-api'
organization 'auth0'
description 'Auth0 Java Spring integration for API'
skipAssertSigningConfiguration true
developers {
auth0 {
displayName = 'Auth0'
Expand Down Expand Up @@ -66,3 +78,11 @@ test {
clean.doFirst {
new File('CHANGELOG.md.release').delete()
}

// 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"
}
}