Skip to content

Commit 188e4b7

Browse files
Suppress CycloneDX schema validation warnings
The CycloneDX plugin outputs warnings about unknown JSON schema keywords (meta:enum, deprecated) which are harmless but noisy. Redirect the task stdout/stderr to INFO level to suppress these warnings during normal builds. Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent cb6b8d8 commit 188e4b7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ cyclonedxBom {
5454
}
5555
}
5656

57+
// Suppress CycloneDX schema validation warnings about unknown keywords
58+
tasks.named('cyclonedxBom') {
59+
logging.captureStandardOutput LogLevel.INFO
60+
logging.captureStandardError LogLevel.INFO
61+
}
62+
5763
// Git info injection - injects commit ID and date into Configuration.java before compilation
5864
// This ensures the built JAR contains accurate version information for -v output
5965
def configFilePath = layout.projectDirectory.file('src/main/java/org/perlonjava/core/Configuration.java')

0 commit comments

Comments
 (0)