Skip to content

Instantly share code, notes, and snippets.

@realModusOperandi
Created July 21, 2022 13:59
Show Gist options
  • Save realModusOperandi/a7521a6c416b54007cb360629eca056a to your computer and use it in GitHub Desktop.
Save realModusOperandi/a7521a6c416b54007cb360629eca056a to your computer and use it in GitHub Desktop.
// 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