Skip to content

Commit 86eabe2

Browse files
authored
Expose public API dependencies as api scope and update versions, clarify targeted Spring versions in README (#45)
1 parent a265852 commit 86eabe2

2 files changed

Lines changed: 16 additions & 14 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Spring Security integration with Auth0 to secure your API with Json Web Tokens (JWT)
1010

11-
> If you need to check the old version please check the branch [v0](https://github.com/auth0/auth0-spring-security-api/tree/v0)
11+
> 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).
1212
1313
## Download
1414

lib/build.gradle

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,23 @@ compileJava {
3030
targetCompatibility '1.7'
3131
}
3232

33+
ext.springSecurityVersion = '4.2.15.RELEASE'
34+
3335
dependencies {
34-
implementation 'com.auth0:java-jwt:3.8.3'
35-
implementation 'com.auth0:jwks-rsa:0.9.0'
36-
implementation 'com.fasterxml.jackson.core:jackson-databind:2.10.0.pr3'
37-
implementation 'commons-codec:commons-codec:1.12'
38-
implementation 'org.springframework.security:spring-security-core:4.2.13.RELEASE'
39-
implementation 'org.springframework.security:spring-security-web:4.2.13.RELEASE'
40-
implementation 'org.springframework.security:spring-security-config:4.2.13.RELEASE'
41-
implementation 'org.slf4j:slf4j-api:1.7.26'
42-
compileOnly 'javax.servlet:servlet-api:2.5'
36+
api "com.auth0:java-jwt:3.10.2"
37+
api "com.auth0:jwks-rsa:0.11.0"
38+
api "org.springframework.security:spring-security-core:${springSecurityVersion}"
39+
api "org.springframework.security:spring-security-web:${springSecurityVersion}"
40+
api "org.springframework.security:spring-security-config:${springSecurityVersion}"
41+
42+
implementation "commons-codec:commons-codec:1.14"
43+
implementation "org.slf4j:slf4j-api:1.7.30"
44+
compileOnly "javax.servlet:servlet-api:2.5"
4345

44-
testImplementation 'junit:junit:4.12'
45-
testImplementation 'org.hamcrest:java-hamcrest:2.0.0.0'
46-
testImplementation 'org.mockito:mockito-core:2.28.2'
47-
testCompile 'javax.servlet:servlet-api:2.5'
46+
testImplementation "junit:junit:4.12"
47+
testImplementation "org.hamcrest:java-hamcrest:2.0.0.0"
48+
testImplementation "org.mockito:mockito-core:2.28.2"
49+
testCompile "javax.servlet:servlet-api:2.5"
4850
}
4951

5052
jacocoTestReport {

0 commit comments

Comments
 (0)