-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dependency updates and apply Sonatype Scan Gradle Plugin (#2264)
* core 4.7.9 * aws sdk v2 2.29.39 * use jetty version defined in servlet jetty * logging 1.5.1 * protect against NPE in log statement * add sonatype scan gradle plugin * define version in libs.versions.toml * sonatype 2.8.3 * only for java 17 * add env variables
- Loading branch information
Showing
6 changed files
with
37 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
buildSrc/src/main/groovy/io.micronaut.build.internal.aws-module.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,23 @@ | ||
plugins { | ||
id "io.micronaut.build.internal.aws-base" | ||
id "io.micronaut.build.internal.module" | ||
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 | ||
excludeCompileOnly = true | ||
excludeCoordinates = [ | ||
"org.eclipse.jetty:jetty-http:11.0.24" // no version of Jetty 11 patched https://ossindex.sonatype.org/component/pkg:maven/org.eclipse.jetty/jetty-http | ||
] | ||
} | ||
} | ||
configurations.all { | ||
resolutionStrategy { | ||
force("commons-io:commons-io:2.14.0") // first version patched https://ossindex.sonatype.org/component/pkg:maven/commons-io/commons-io | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters