-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathio.micronaut.build.internal.kotlin-module.gradle
31 lines (30 loc) · 1.54 KB
/
io.micronaut.build.internal.kotlin-module.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
plugins {
id "io.micronaut.build.internal.kotlin-base"
id "io.micronaut.build.internal.module"
id("org.jetbrains.dokka")
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
if (sonatypePluginConfigured) {
ossIndexAudit {
username = ossIndexUsername
password = ossIndexPassword
excludeCoordinates = [ // Ktor 2.x vulnerable versions
"org.apache.tomcat:tomcat-catalina:9.0.89",
"org.apache.tomcat:tomcat-coyote:9.0.102",
"org.eclipse.jetty:jetty-server:9.4.54.v20240208",
"org.eclipse.jetty:jetty-http:9.4.54.v20240208",
"org.eclipse.jetty:jetty-servlets:9.4.54.v20240208",
]
excludeVulnerabilityIds = ["CVE-2025-24970"]
// the vulnerability description says Netty 4.1.118 patches it. However, Netty 4.1.118 is still reported as vulnerable.
// https://ossindex.sonatype.org/vulnerability/CVE-2025-24970?component-type=maven&component-name=io.netty/netty-handler
// > Version 4.1.118.Final contains a patch
// SslHandler doesn't correctly validate packets which can lead to native crash when using native SSLEngine https://netty.io/news/2025/02/10/4-1-118-Final.html_
}
}
dokkaHtmlPartial {
dependsOn("kaptKotlin")
}