Skip to content

Commit

Permalink
Updated webapp to use the externally published jwt-opa library (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
massenz committed Oct 27, 2023
1 parent 2132428 commit 696f799
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jwt-opa/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ dependencies {
testImplementation "org.testcontainers:testcontainers:$tcVersion"
testImplementation "org.testcontainers:junit-jupiter:$tcVersion"
testImplementation "org.testcontainers:localstack:$tcVersion"
testImplementation group: 'com.amazonaws', name: 'aws-java-sdk-core', version: '1.12.326'
testImplementation group: 'com.amazonaws', name: 'aws-java-sdk-core', version: '1.12.472'
}

jacocoTestCoverageVerification {
Expand Down
15 changes: 12 additions & 3 deletions webapp-example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ version = "0.4.0"
repositories {
// Adding local repository for Gradle to find jwt-opa before it gets published.
// Use: ./gradlew :jwt-opa:publishToMavenLocal
// mavenLocal()
// mavenLocal()
mavenCentral()
}

Expand All @@ -39,6 +39,7 @@ ext {
jwtOpaVersion = "0.10.0"
lombokVersion = "1.18.22"
tcVersion = "1.15.1"
awsSdkVersion = '2.17.102'
}

bootJar {
Expand All @@ -50,8 +51,8 @@ dependencies {
// as to emulate an actual project using jwt-opa externally.
// Uncomment the following line (and comment out the one below) to use the local version
// while developing.
implementation project (':jwt-opa')
// implementation "com.alertavert:jwt-opa:${jwtOpaVersion}"
// implementation project (':jwt-opa')
implementation "com.alertavert:jwt-opa:${jwtOpaVersion}"

// For the @PostConstruct annotation
implementation 'javax.annotation:javax.annotation-api:1.3.2'
Expand All @@ -77,6 +78,14 @@ dependencies {
// UI at http://localhost:8081/swagger-ui/ (trailing slash matters)
implementation 'io.springfox:springfox-boot-starter:3.0.0'

// AWS Java SDK
// https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk
implementation group: 'com.amazonaws', name: 'aws-java-sdk', version: '1.12.573'

// AWS SDK for Secrets Manager,
// see: https://docs.aws.amazon.com/code-samples/latest/catalog/code-catalog-javav2-example_code-secretsmanager.html
implementation "software.amazon.awssdk:secretsmanager:${awsSdkVersion}"

testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
Expand Down

0 comments on commit 696f799

Please sign in to comment.