From bab7f90d5cf8bb04e2942018a5c212b310b7077e Mon Sep 17 00:00:00 2001 From: issam liqali Date: Fri, 10 Oct 2025 14:45:02 +0100 Subject: [PATCH] Build: remove sonatype plugin --- buildSrc/build.gradle | 1 - .../groovy/io.micronaut.build.internal.sql-module.gradle | 9 +-------- gradle/libs.versions.toml | 2 -- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index 2fdd54a09..21e3c4541 100644 --- a/buildSrc/build.gradle +++ b/buildSrc/build.gradle @@ -9,5 +9,4 @@ repositories { dependencies { implementation libs.gradle.micronaut - implementation(libs.sonatype.scan) } diff --git a/buildSrc/src/main/groovy/io.micronaut.build.internal.sql-module.gradle b/buildSrc/src/main/groovy/io.micronaut.build.internal.sql-module.gradle index 9226e85a7..526b47efe 100644 --- a/buildSrc/src/main/groovy/io.micronaut.build.internal.sql-module.gradle +++ b/buildSrc/src/main/groovy/io.micronaut.build.internal.sql-module.gradle @@ -1,16 +1,9 @@ plugins { id 'io.micronaut.build.internal.module' id 'io.micronaut.build.internal.sql-base' - id("org.sonatype.gradle.plugins.scan") } -String ossIndexUsername = System.getenv("OSS_INDEX_USERNAME") ?: project.properties["ossIndexUsername"] -String ossIndexPassword = System.getenv("OSS_INDEX_PASSWORD") ?: project.properties["ossIndexPassword"] -boolean sonatypePluginConfigured = ossIndexUsername != null && ossIndexPassword != null + ossIndexAudit { -if (sonatypePluginConfigured) { - username = ossIndexUsername - password = ossIndexPassword -} excludeCoordinates = [ "com.h2database:h2:2.4.240" // no version patched https://ossindex.sonatype.org/component/pkg:maven/com.h2database/h2 ] diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index e68fc1d07..55af3c55d 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -58,7 +58,6 @@ managed-h2 = "2.4.240" sfm-reflect = "9.0.2" # Needed for vertx pg client and micronaut-data hibernate reactive managed-ongres-scram = "2.1" -sonatype-scan = "3.1.4" # Testing @@ -151,7 +150,6 @@ managed-jakarta-transaction-api = { module = "jakarta.transaction:jakarta.transa sfm-reflect = { module = "org.simpleflatmapper:sfm-reflect", version.ref = "sfm-reflect" } managed-ongres-scram-client = { module = "com.ongres.scram:client", version.ref = "managed-ongres-scram" } -sonatype-scan = { module = "org.sonatype.gradle.plugins:scan-gradle-plugin", version.ref = "sonatype-scan" } # Testresources