From 2dadb0eb382ac34eae8b152f7edc17d04580961e Mon Sep 17 00:00:00 2001 From: James Anderson Date: Mon, 13 Apr 2020 17:30:47 -0500 Subject: [PATCH] Expose public API dependencies as api scope and update versions, clarify targeted Spring versions in README --- README.md | 2 +- lib/build.gradle | 28 +++++++++++++++------------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 6eda6a1..c0e4857 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Spring Security integration with Auth0 to secure your API with Json Web Tokens (JWT) -> If you need to check the old version please check the branch [v0](https://github.com/auth0/auth0-spring-security-api/tree/v0) +> This library targets Spring 4 and Spring Boot 1. If you are using Spring 5 and Spring Boot 2, please see the [Spring Security 5 API Quickstart](https://auth0.com/docs/quickstart/backend/java-spring-security5). ## Download diff --git a/lib/build.gradle b/lib/build.gradle index cf27440..3c1eae7 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -30,21 +30,23 @@ compileJava { targetCompatibility '1.7' } +ext.springSecurityVersion = '4.2.15.RELEASE' + dependencies { - implementation 'com.auth0:java-jwt:3.8.3' - implementation 'com.auth0:jwks-rsa:0.9.0' - implementation 'com.fasterxml.jackson.core:jackson-databind:2.10.0.pr3' - implementation 'commons-codec:commons-codec:1.12' - implementation 'org.springframework.security:spring-security-core:4.2.13.RELEASE' - implementation 'org.springframework.security:spring-security-web:4.2.13.RELEASE' - implementation 'org.springframework.security:spring-security-config:4.2.13.RELEASE' - implementation 'org.slf4j:slf4j-api:1.7.26' - compileOnly 'javax.servlet:servlet-api:2.5' + api "com.auth0:java-jwt:3.10.2" + api "com.auth0:jwks-rsa:0.11.0" + api "org.springframework.security:spring-security-core:${springSecurityVersion}" + api "org.springframework.security:spring-security-web:${springSecurityVersion}" + api "org.springframework.security:spring-security-config:${springSecurityVersion}" + + implementation "commons-codec:commons-codec:1.14" + implementation "org.slf4j:slf4j-api:1.7.30" + compileOnly "javax.servlet:servlet-api:2.5" - testImplementation 'junit:junit:4.12' - testImplementation 'org.hamcrest:java-hamcrest:2.0.0.0' - testImplementation 'org.mockito:mockito-core:2.28.2' - testCompile 'javax.servlet:servlet-api:2.5' + testImplementation "junit:junit:4.12" + testImplementation "org.hamcrest:java-hamcrest:2.0.0.0" + testImplementation "org.mockito:mockito-core:2.28.2" + testCompile "javax.servlet:servlet-api:2.5" } jacocoTestReport {