Java / Kotlin
Learn Java and Kotlin source and binary scan support in Xray.
Introduction
JFrog Xray provides security and compliance analysis for Java and Kotlin applications throughout the software development lifecycle. This page describes the supported scan contexts, package managers, capabilities, and dependency analysis available for Java and Kotlin.
Capabilities
The following capabilities are available for Java and Kotlin.
| Capability | Source Code Scanning | Binary Scanning |
|---|---|---|
| Vulnerability Matching (CVEs) | ||
| License Detection | ||
| Malicious Package Detection | ||
| Operational Risk | ||
| Smart Remediation | 🔜 | 🔜 |
Source code scanning analyzes your project's dependency manifest files to identify components and their vulnerabilities. You can use it with the JFrog CLI jf audit command, Frogbot, IDE integrations, and CI pipelines. For more information, see Scan Your Source Code.
Which files a source scan reads depends on the scan method. For those differences, see Source Scanning Engines and Frogbot Versions.
Supported Files
| Package Manager | Supported Files | Available with |
|---|---|---|
| Maven | pom.xml | Default jf audit |
| Maven | pom.xml – Parent POM resolution, dependencyManagement, property substitution, multi-module | Frogbot V3 |
| Gradle | build.gradle, build.gradle.kts, gradle.lockfile, settings.gradle, settings.gradle.kts (Groovy and Kotlin DSL) | Frogbot V3 |
| Ivy | — |
Dependency Graph
| Package Manager | Dependency Graph | Available with |
|---|---|---|
| Maven | Default jf audit | |
| Maven | Frogbot V3 | |
| Gradle | ⚠️ Flat – Lockfile-based, dynamic dependencies not resolved | Frogbot V3 |
Binary scanning analyzes built artifacts stored in JFrog Artifactory repositories, extracting package metadata from the artifact format itself. For more information, see Scan Your Binaries.
Supported Files
The following archive types are supported for Java and Kotlin binary scanning.
| Package Manager | Supported Files |
|---|---|
| Maven | jar, war, ear, sar, har, hpi, cpa, jpi, and all archive types |
| Gradle | jar, war, ear, sar, har, hpi, cpa, jpi, and all archive types |
| Ivy | jar, war, ear, sar, har, hpi, cpa, jpi, and all archive types |
Related Topics
Updated 1 day ago
