Skip to main content

Apex packaging

Your Apex applications must meet specific compilation requirements before you can submit them for scanning.

See Supported languages and platforms for instructions for other platforms.

Veracode supports analyzing Apex and other application components that extend the Salesforce platform.

Supported Apex versions

LanguageSupported versions
Apex60.0 and earlier

Supported Apex libraries and technologies

Framework/TechnologySupported versions
Visualforce Pages60.0 and earlier
Lightning Web Components60.0 and earlier
Aura (Lightning) Components60.0 and earlier

Required files

Veracode requires source files for the Apex application.

Packaging guidance

Upload a ZIP archive containing these files to Veracode:

  • All Apex source code
  • Visualforce pages
  • Lightning component source, including any application pages, component files, HTML templates, and JavaScript code from Lightning web components

Files must be UTF-8 encoded.

Do not include third-party packages. Do not upload individual Apex source files.

Veracode only scans Apex files with these extensions:

  • APP
  • CLS
  • CMP
  • EVT
  • PAGE
  • TGR
  • VFP

Accessing Apex, Visualforce, and Lightning components

You can access the components of your Salesforce applications to prepare them for analysis in one of these ways:

  • Download source code files individually in the Developer Console
  • Use Salesforce extensions for Visual Studio Code
  • Use the IDE
  • Use the Salesforce Ant Migration tool

For assistance using any of these tools, see the Salesforce documentation.