From aabc787d0ed660e71441eca86ad60cd472de3072 Mon Sep 17 00:00:00 2001 From: Paurush Garg <62579325+PaurushGarg@users.noreply.github.com> Date: Wed, 22 Nov 2023 10:22:17 -0800 Subject: [PATCH] Adding changes to remove nightly-build-error (#614) --- appsignals-tests/contract-tests/build.gradle.kts | 4 ---- appsignals-tests/images/grpc/grpc-base/build.gradle.kts | 4 ---- appsignals-tests/images/grpc/grpc-client/build.gradle.kts | 4 ---- appsignals-tests/images/grpc/grpc-server/build.gradle.kts | 4 ---- .../images/http-servers/netty-server/build.gradle.kts | 3 --- .../images/kafka/kafka-consumers/build.gradle.kts | 4 ---- .../images/kafka/kafka-producers/build.gradle.kts | 4 ---- .../sample-apps/springboot-remote-service/build.gradle.kts | 4 ---- testing/sample-apps/springboot/build.gradle.kts | 4 ---- testing/validator/build.gradle.kts | 3 +++ 10 files changed, 3 insertions(+), 35 deletions(-) diff --git a/appsignals-tests/contract-tests/build.gradle.kts b/appsignals-tests/contract-tests/build.gradle.kts index 65b8aae75e..6252bc5ac4 100644 --- a/appsignals-tests/contract-tests/build.gradle.kts +++ b/appsignals-tests/contract-tests/build.gradle.kts @@ -104,7 +104,3 @@ tasks { dependsOn(":appsignals-tests:images:kafka:kafka-consumers:jibDockerBuild") } } - -repositories { - mavenCentral() -} diff --git a/appsignals-tests/images/grpc/grpc-base/build.gradle.kts b/appsignals-tests/images/grpc/grpc-base/build.gradle.kts index cfd7934b22..b945d29474 100644 --- a/appsignals-tests/images/grpc/grpc-base/build.gradle.kts +++ b/appsignals-tests/images/grpc/grpc-base/build.gradle.kts @@ -20,10 +20,6 @@ plugins { group = "software.amazon.opentelemetry" -repositories { - mavenCentral() -} - dependencies { // Workaround for @javax.annotation.Generated // see: https://github.com/grpc/grpc-java/issues/3633 diff --git a/appsignals-tests/images/grpc/grpc-client/build.gradle.kts b/appsignals-tests/images/grpc/grpc-client/build.gradle.kts index 0ac0737b00..9b529bb23f 100644 --- a/appsignals-tests/images/grpc/grpc-client/build.gradle.kts +++ b/appsignals-tests/images/grpc/grpc-client/build.gradle.kts @@ -23,10 +23,6 @@ plugins { group = "software.amazon.opentelemetry" -repositories { - mavenCentral() -} - dependencies { implementation("com.sparkjava:spark-core") implementation("org.slf4j:slf4j-simple") diff --git a/appsignals-tests/images/grpc/grpc-server/build.gradle.kts b/appsignals-tests/images/grpc/grpc-server/build.gradle.kts index fdee18243f..73be8257d2 100644 --- a/appsignals-tests/images/grpc/grpc-server/build.gradle.kts +++ b/appsignals-tests/images/grpc/grpc-server/build.gradle.kts @@ -23,10 +23,6 @@ plugins { group = "software.amazon.opentelemetry" -repositories { - mavenCentral() -} - dependencies { implementation(project(":appsignals-tests:images:grpc:grpc-base")) implementation("javax.annotation:javax.annotation-api:1.3.2") diff --git a/appsignals-tests/images/http-servers/netty-server/build.gradle.kts b/appsignals-tests/images/http-servers/netty-server/build.gradle.kts index 3d87218b12..e017e85e4d 100644 --- a/appsignals-tests/images/http-servers/netty-server/build.gradle.kts +++ b/appsignals-tests/images/http-servers/netty-server/build.gradle.kts @@ -32,9 +32,6 @@ dependencies { implementation("org.slf4j:slf4j-simple:1.7.30") implementation("io.opentelemetry:opentelemetry-api") } -repositories { - mavenCentral() -} // not publishing images to hubs in this configuration - local build only through jibDockerBuild // if localDocker property is set to true then the image will only be pulled from Docker Daemon diff --git a/appsignals-tests/images/kafka/kafka-consumers/build.gradle.kts b/appsignals-tests/images/kafka/kafka-consumers/build.gradle.kts index ed6a8b7461..045271e337 100644 --- a/appsignals-tests/images/kafka/kafka-consumers/build.gradle.kts +++ b/appsignals-tests/images/kafka/kafka-consumers/build.gradle.kts @@ -25,10 +25,6 @@ java { targetCompatibility = JavaVersion.VERSION_11 } -repositories { - mavenCentral() -} - dependencies { implementation("com.sparkjava:spark-core") implementation("org.apache.kafka:kafka-clients:3.6.0") diff --git a/appsignals-tests/images/kafka/kafka-producers/build.gradle.kts b/appsignals-tests/images/kafka/kafka-producers/build.gradle.kts index e8118b3e73..fe4c99c585 100644 --- a/appsignals-tests/images/kafka/kafka-producers/build.gradle.kts +++ b/appsignals-tests/images/kafka/kafka-producers/build.gradle.kts @@ -25,10 +25,6 @@ java { targetCompatibility = JavaVersion.VERSION_11 } -repositories { - mavenCentral() -} - dependencies { implementation("com.sparkjava:spark-core") implementation("org.apache.kafka:kafka-clients:3.6.0") diff --git a/testing/sample-apps/springboot-remote-service/build.gradle.kts b/testing/sample-apps/springboot-remote-service/build.gradle.kts index 0c9193e894..dbe67c6e50 100644 --- a/testing/sample-apps/springboot-remote-service/build.gradle.kts +++ b/testing/sample-apps/springboot-remote-service/build.gradle.kts @@ -26,10 +26,6 @@ version = "0.0.1-SNAPSHOT" java.sourceCompatibility = JavaVersion.VERSION_11 java.targetCompatibility = JavaVersion.VERSION_11 -repositories { - mavenCentral() -} - dependencies { implementation("org.springframework.boot:spring-boot-starter-web") implementation("org.springframework.boot:spring-boot-starter-logging") diff --git a/testing/sample-apps/springboot/build.gradle.kts b/testing/sample-apps/springboot/build.gradle.kts index d8f6998e7f..eb483f45e8 100644 --- a/testing/sample-apps/springboot/build.gradle.kts +++ b/testing/sample-apps/springboot/build.gradle.kts @@ -26,10 +26,6 @@ version = "0.0.1-SNAPSHOT" java.sourceCompatibility = JavaVersion.VERSION_11 java.targetCompatibility = JavaVersion.VERSION_11 -repositories { - mavenCentral() -} - dependencies { implementation(platform("software.amazon.awssdk:bom:2.20.78")) implementation("org.springframework.boot:spring-boot-starter-web") diff --git a/testing/validator/build.gradle.kts b/testing/validator/build.gradle.kts index de03b5ad31..852bdc9971 100644 --- a/testing/validator/build.gradle.kts +++ b/testing/validator/build.gradle.kts @@ -28,6 +28,9 @@ repositories { maven( "https://jitpack.io", ) + maven { + setUrl("https://oss.sonatype.org/content/repositories/snapshots") + } } dependencies {