From 696f799b19f4964c5aa37aaa3d16f64233c956d3 Mon Sep 17 00:00:00 2001 From: Marco Massenzio <1153951+massenz@users.noreply.github.com> Date: Thu, 26 Oct 2023 18:40:33 -0700 Subject: [PATCH] Updated webapp to use the externally published jwt-opa library (#56) --- jwt-opa/build.gradle | 2 +- webapp-example/build.gradle | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/jwt-opa/build.gradle b/jwt-opa/build.gradle index 65e5a63..4104a97 100644 --- a/jwt-opa/build.gradle +++ b/jwt-opa/build.gradle @@ -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 { diff --git a/webapp-example/build.gradle b/webapp-example/build.gradle index cc406d0..d79db09 100644 --- a/webapp-example/build.gradle +++ b/webapp-example/build.gradle @@ -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() } @@ -39,6 +39,7 @@ ext { jwtOpaVersion = "0.10.0" lombokVersion = "1.18.22" tcVersion = "1.15.1" + awsSdkVersion = '2.17.102' } bootJar { @@ -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' @@ -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' }