Skip to content

Updated webapp to use the externally published jwt-opa library #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 27, 2023
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
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