Skip to content

Commit

Permalink
Add deps to make gradlew dependencies command work
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanielRN committed May 26, 2022
1 parent f9aceb1 commit 79c08df
Show file tree
Hide file tree
Showing 13 changed files with 128 additions and 7 deletions.
7 changes: 7 additions & 0 deletions aws-xray-recorder-sdk-apache-http/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ dependencies {
testImplementation("com.github.tomakehurst:wiremock-jre8:2.33.2")
testImplementation("junit:junit:4.13.1")
testImplementation("org.mockito:mockito-core:3.12.4")

// The packages below are necessary to make the
//
// `./gradlew aws-xray-recorder-sdk-apache-http:dependencies --stacktrace`
//
// command work correctly
compileOnly("com.google.errorprone:error_prone_annotations:2.5.1")
}

tasks.jar {
Expand Down
9 changes: 9 additions & 0 deletions aws-xray-recorder-sdk-aws-sdk-instrumentor/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ plugins {

dependencies {
implementation(project(":aws-xray-recorder-sdk-aws-sdk"))

// The packages below are necessary to make the
//
// `./gradlew aws-xray-recorder-sdk-aws-sdk:dependencies --stacktrace`
//
// command work correctly
compileOnly("com.google.errorprone:error_prone_annotations:2.5.1")

testImplementation("org.junit-pioneer:junit-pioneer:0.9.0")
}

tasks.jar {
Expand Down
13 changes: 13 additions & 0 deletions aws-xray-recorder-sdk-aws-sdk-v2-instrumentor/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ plugins {

dependencies {
implementation(project(":aws-xray-recorder-sdk-aws-sdk-v2"))

// The packages below are necessary to make the
//
// `./gradlew aws-xray-recorder-sdk-aws-sdk-v2-instrumentor:dependencies --stacktrace`
//
// command work correctly
compileOnly("com.google.errorprone:error_prone_annotations:2.5.1")

testImplementation("org.junit-pioneer:junit-pioneer:0.9.0")
testImplementation("junit:junit:4.13.1")
testImplementation("org.assertj:assertj-core:3.16.1")
testImplementation("org.mockito:mockito-core:3.12.4")
testImplementation("org.mockito:mockito-junit-jupiter:3.12.4")
}

tasks.jar {
Expand Down
11 changes: 11 additions & 0 deletions aws-xray-recorder-sdk-aws-sdk-v2/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ dependencies {
testImplementation("org.skyscreamer:jsonassert:1.3.0")
testImplementation("software.amazon.awssdk:dynamodb:2.15.20")
testImplementation("software.amazon.awssdk:lambda:2.15.20")

// The packages below are necessary to make the
//
// `./gradlew aws-xray-recorder-sdk-aws-sdk-v2:dependencies --stacktrace`
//
// command work correctly
compileOnly("com.google.errorprone:error_prone_annotations:2.5.1")

testImplementation("org.assertj:assertj-core:3.16.1")
testImplementation("org.junit-pioneer:junit-pioneer:0.9.0")
testImplementation("org.mockito:mockito-junit-jupiter:3.12.4")
}

tasks.jar {
Expand Down
9 changes: 3 additions & 6 deletions aws-xray-recorder-sdk-aws-sdk/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,12 @@ dependencies {
//
// `./gradlew aws-xray-recorder-sdk-aws-sdk:dependencies --stacktrace`
//
// command work correctly, but are not needed for
//
// `./gradlew build --stacktrace`
//
// command work correctly
compileOnly("com.google.errorprone:error_prone_annotations:2.5.1")
testImplementation("junit:junit:4.13.1")
testImplementation("org.mockito:mockito-junit-jupiter:3.12.4")
testImplementation("org.junit-pioneer:junit-pioneer:0.9.0")
testImplementation("org.assertj:assertj-core:3.16.1")
testImplementation("org.junit-pioneer:junit-pioneer:0.9.0")
testImplementation("org.mockito:mockito-junit-jupiter:3.12.4")
}

tasks.jar {
Expand Down
7 changes: 6 additions & 1 deletion aws-xray-recorder-sdk-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ dependencies {
testImplementation("org.powermock:powermock-module-junit4:2.0.7")
testImplementation("org.powermock:powermock-api-mockito2:2.0.7")
testImplementation("org.skyscreamer:jsonassert:1.3.0")


// The packages below are necessary to make the
//
// `./gradlew aws-xray-recorder-sdk-core:dependencies --stacktrace`
//
// command work correctly
compileOnly("com.google.errorprone:error_prone_annotations:2.5.1")

testImplementation("com.github.tomakehurst:wiremock-jre8:2.33.2")
Expand Down
12 changes: 12 additions & 0 deletions aws-xray-recorder-sdk-log4j/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ dependencies {

testImplementation("org.apache.logging.log4j:log4j-api:2.17.0")
testImplementation("org.mockito:mockito-core:3.12.4")

// The packages below are necessary to make the
//
// `./gradlew aws-xray-recorder-sdk-log4j:dependencies --stacktrace`
//
// command work correctly
compileOnly("com.google.errorprone:error_prone_annotations:2.5.1")

testImplementation("junit:junit:4.13.1")
testImplementation("org.assertj:assertj-core:3.16.1")
testImplementation("org.junit-pioneer:junit-pioneer:0.9.0")
testImplementation("org.mockito:mockito-junit-jupiter:3.12.4")
}

tasks.jar {
Expand Down
11 changes: 11 additions & 0 deletions aws-xray-recorder-sdk-metrics/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ dependencies {
testImplementation("com.github.stefanbirkner:system-rules:1.16.0")
testImplementation("org.powermock:powermock-module-junit4:2.0.2")
testImplementation("org.powermock:powermock-api-mockito2:2.0.2")

// The packages below are necessary to make the
//
// `./gradlew aws-xray-recorder-sdk-metrics:dependencies --stacktrace`
//
// command work correctly
compileOnly("com.google.errorprone:error_prone_annotations:2.5.1")

testImplementation("org.assertj:assertj-core:3.16.1")
testImplementation("org.junit-pioneer:junit-pioneer:0.9.0")
testImplementation("org.mockito:mockito-junit-jupiter:3.12.4")
}

tasks.jar {
Expand Down
11 changes: 11 additions & 0 deletions aws-xray-recorder-sdk-slf4j/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ dependencies {
testImplementation("ch.qos.logback:logback-classic:1.3.0-alpha5")
testImplementation("junit:junit:4.13.1")
testImplementation("org.mockito:mockito-core:3.12.4")

// The packages below are necessary to make the
//
// `./gradlew aws-xray-recorder-sdk-slf4j:dependencies --stacktrace`
//
// command work correctly
compileOnly("com.google.errorprone:error_prone_annotations:2.5.1")

testImplementation("org.assertj:assertj-core:3.16.1")
testImplementation("org.junit-pioneer:junit-pioneer:0.9.0")
testImplementation("org.mockito:mockito-junit-jupiter:3.12.4")
}

tasks.jar {
Expand Down
11 changes: 11 additions & 0 deletions aws-xray-recorder-sdk-spring/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ dependencies {

testImplementation("junit:junit:4.13.1")
testImplementation("org.mockito:mockito-core:3.12.4")

// The packages below are necessary to make the
//
// `./gradlew aws-xray-recorder-sdk-spring:dependencies --stacktrace`
//
// command work correctly
compileOnly("com.google.errorprone:error_prone_annotations:2.5.1")

testImplementation("org.assertj:assertj-core:3.16.1")
testImplementation("org.junit-pioneer:junit-pioneer:0.9.0")
testImplementation("org.mockito:mockito-junit-jupiter:3.12.4")
}

tasks.jar {
Expand Down
11 changes: 11 additions & 0 deletions aws-xray-recorder-sdk-sql-mysql/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ dependencies {

testImplementation("junit:junit:4.13.1")
compileOnly("org.apache.tomcat:tomcat-jdbc:8.0.36")

// The packages below are necessary to make the
//
// `./gradlew aws-xray-recorder-sdk-sql-mysql:dependencies --stacktrace`
//
// command work correctly
compileOnly("com.google.errorprone:error_prone_annotations:2.5.1")

testImplementation("org.assertj:assertj-core:3.16.1")
testImplementation("org.junit-pioneer:junit-pioneer:0.9.0")
testImplementation("org.mockito:mockito-junit-jupiter:3.12.4")
}

tasks.jar {
Expand Down
11 changes: 11 additions & 0 deletions aws-xray-recorder-sdk-sql-postgres/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ dependencies {

testImplementation("junit:junit:4.13.1")
compileOnly("org.apache.tomcat:tomcat-jdbc:8.0.36")

// The packages below are necessary to make the
//
// `./gradlew aws-xray-recorder-sdk-sql-postgres:dependencies --stacktrace`
//
// command work correctly
compileOnly("com.google.errorprone:error_prone_annotations:2.5.1")

testImplementation("org.assertj:assertj-core:3.16.1")
testImplementation("org.junit-pioneer:junit-pioneer:0.9.0")
testImplementation("org.mockito:mockito-junit-jupiter:3.12.4")
}

tasks.jar {
Expand Down
12 changes: 12 additions & 0 deletions smoke-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ dependencies {

testImplementation("org.mockito:mockito-core:3.12.4")
testImplementation("org.mockito:mockito-junit-jupiter:3.12.4")

// The packages below are necessary to make the
//
// `./gradlew smoke-tests:dependencies --stacktrace`
//
// command work correctly
compileOnly("com.google.errorprone:error_prone_annotations:2.5.1")

testImplementation("junit:junit:4.13.1")
testImplementation("org.assertj:assertj-core:3.16.1")
testImplementation("org.junit-pioneer:junit-pioneer:0.9.0")
testImplementation("org.mockito:mockito-junit-jupiter:3.12.4")
}

if (rootProject.findProperty("testDistributionChannel") == "true") {
Expand Down

0 comments on commit 79c08df

Please sign in to comment.