@@ -12,7 +12,7 @@ plugins {
1212 id(" otel.errorprone-conventions" )
1313 id(" otel.jacoco-conventions" )
1414 id(" otel.spotless-conventions" )
15- id(" org.owasp.dependencycheck " )
15+ id(" org.sonatype.gradle.plugins.scan " )
1616}
1717
1818val otelJava = extensions.create<OtelJavaExtension >(" otelJava" )
@@ -48,26 +48,10 @@ checkstyle {
4848 configProperties[" rootDir" ] = rootDir
4949}
5050
51- dependencyCheck {
52- skipConfigurations = mutableListOf (
53- " errorprone" ,
54- " checkstyle" ,
55- " annotationProcessor" ,
56- " java9AnnotationProcessor" ,
57- " moduleAnnotationProcessor" ,
58- " testAnnotationProcessor" ,
59- " testJpmsAnnotationProcessor" ,
60- " animalsniffer" ,
61- " spotless996155815" , // spotless996155815 is a weird configuration that's only added in jaeger-proto, jaeger-remote-sampler
62- " js2p" ,
63- " jmhAnnotationProcessor" ,
64- " jmhBasedTestAnnotationProcessor" ,
65- " jmhCompileClasspath" ,
66- " jmhRuntimeClasspath" ,
67- " jmhRuntimeOnly" )
68- failBuildOnCVSS = 7.0f // fail on high or critical CVE
69- analyzers.assemblyEnabled = false // not sure why its trying to analyze .NET assemblies
70- nvd.apiKey = System .getenv(" NVD_API_KEY" )
51+ ossIndexAudit {
52+ username = System .getenv(" SONATYPE_OSS_INDEX_USER" ) ? : " "
53+ password = System .getenv(" SONATYPE_OSS_INDEX_PASSWORD" ) ? : " "
54+ outputFormat = org.sonatype.gradle.plugins.scan.ossindex.OutputFormat .JSON_CYCLONE_DX_1_4
7155}
7256
7357val testJavaVersion = gradle.startParameter.projectProperties.get(" testJavaVersion" )?.let (JavaVersion ::toVersion)
0 commit comments