Skip to content
This repository was archived by the owner on Nov 13, 2025. It is now read-only.

Commit d4a30df

Browse files
committed
Replace net.ossindex.audit with org.sonatype.gradle.plugins.scan
1 parent 5b5ce98 commit d4a30df

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ rootProject.extra.set("artifactVersion", SimpleDateFormat("yyyy-MM-dd\'T\'HH-mm-
66
plugins {
77
id("maven-publish")
88
id("com.github.ben-manes.versions") version "0.53.0"
9-
id("net.ossindex.audit") version "0.4.11"
9+
id("org.sonatype.gradle.plugins.scan") version "3.1.4"
1010
id("io.freefair.maven-central.validate-poms") version "8.14.2"
1111
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
1212
}
@@ -35,6 +35,11 @@ subprojects {
3535
}
3636
}
3737

38+
ossIndexAudit {
39+
username = System.getenv("SONATYPE_INDEX_USERNAME") ?: findProperty("sonatype.index.username")
40+
password = System.getenv("SONATYPE_INDEX_PASSWORD") ?: findProperty("sonatype.index.password")
41+
}
42+
3843
fun findProperty(s: String) = project.findProperty(s) as String?
3944

4045
val isSnapshot = project.version == "unspecified"

engine/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
id("maven-publish")
77
id("signing")
88
id("com.github.ben-manes.versions")
9-
id("net.ossindex.audit")
9+
id("org.sonatype.gradle.plugins.scan")
1010
id("io.freefair.maven-central.validate-poms")
1111
}
1212

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ sonatype.staging.url=https://oss.sonatype.org/service/local/staging/deploy/maven
1212
sonatype.staging.profile.id=
1313
sonatype.username=
1414
sonatype.password=
15+
16+
sonatype.index.username=
17+
sonatype.index.password=

integrationtest/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
22
groovy
33
id("com.github.ben-manes.versions")
4-
id("net.ossindex.audit")
4+
id("org.sonatype.gradle.plugins.scan")
55
}
66

77
java {

0 commit comments

Comments
 (0)