Created
July 21, 2022 13:59
-
-
Save realModusOperandi/a7521a6c416b54007cb360629eca056a to your computer and use it in GitHub Desktop.
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
// Snippet of Gradle config to run the binary scanner | |
configurations { | |
binaryScanner | |
} | |
dependencies { | |
//... | |
binaryScanner 'com.ibm.websphere.appmod.tools:binary-app-scanner:22.0.0.1' | |
} | |
task runBinaryScanner(type: JavaExec) { | |
dependsOn war | |
group = 'verification' | |
classpath = configurations.binaryScanner | |
workingDir = "${buildDir}/libs" | |
args(war.archiveFile.get().asFile.absolutePath, "--analyze", "--targetJava=java17", "--nobrowser", "--output=${buildDir.absolutePath}") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment