
JHyun398998 (Community Member) asked a question.
What is the proper way to package / bundle a Scala, Play Framework, application for proper Software Composition Analysis (SCA)? We already submit Java Spring Boot application "fat" jars with dependencies and these correctly show the dependent libraries. But for Scala, the Veracode documentation specifically says to not include dependencies, except for SCA, and yet does not describe how to bundle them for SCA.
Note, we are submitting multiple web apps under a single Application entry. Do we bundle each Scala application with dependent jars in a zip file? Or do we just submit all the jar files, including dependencies, without bundling? How would Veracode know which is our code and which are dependencies?
.png)
I think I've found a solution/workaround/hack by repackaging the Scala Play Framework application as a fake war file. I took the main jar file of the application and extracted its contents into the war's WEB-INF/classes directory and put all the third party dependencies into the WEB-INF/lib directory. Even though the war didn't have a web.xml file, which the Veracode scan flagged, it still processed the archive, performed the normal scan and performed the SCA scan.