Gradle Repository | JFrog

Gradle Repository

JFrog's Gradle integration provides enterprises with secure, centralized artifact management and dependency resolution while accelerating builds through native caching and automated repository management features.

Gradle Integration Features

Accelerate Build and Dependency Management Streamline artifact resolution and deployment with native Gradle integration. Automatically resolve dependencies from Artifactory while maintaining local and remote repository management with built-in support for Gradle’s dependency declarations.

Enterprise-Grade Dependency Control Ensure build stability and security with comprehensive dependency management. Control which repositories developers can access, enforce security policies, and maintain consistent dependency versions across projects.

Unify Artifact Management Centralize all Gradle artifacts, dependencies, and build outputs in a single source of truth. Maintain complete traceability from source code to deployment, with built-in support for multi-module projects and custom layouts.

Advanced Build Integration Features

Secure Dependency Resolution

Key Integration Components

  1. Repository Management

    • Remote repository aggregation
    • Virtual repository support
    • Local repository publication
    • Custom layout mapping
    • Repository filtering and includes/excludes
  2. Build Integration

    • Automatic build info generation
    • Build artifact deployment
    • Dependency resolution
    • Build cache support
    • Plugin configuration
  3. Security Features

    • Encrypted credentials handling
    • Access token support
    • Repository permissions
    • Package blocking
    • License tracking

Configuration Options

This integration empowers organizations to maintain control over their Gradle dependencies and artifacts while providing developers with reliable and secure access to required resources. The native integration ensures seamless compatibility with existing Gradle builds while adding enterprise-grade repository management capabilities.

Frequently Asked Questions

How do I publish Gradle-built artifacts to JFrog Artifactory?

To publish Gradle-built artifacts to JFrog Artifactory, you need to use the JFrog Gradle Plugin. First, you’ll need to add the plugin to your build.gradle file and configure it with your Artifactory server details. Once configured, you can use Gradle tasks like artifactoryPublish to automatically upload your artifacts to the designated repository in Artifactory after the build process completes.

How does JFrog Xray enhance Gradle builds?

JFrog Xray enhances Gradle builds by providing security and license compliance scanning for the artifacts that are produced. It analyzes both direct and transitive dependencies of your Gradle projects and identifies any vulnerabilities or license issues. This helps developers ensure that only secure and compliant components are included in their applications, mitigating security risks and adhering to legal requirements.

Can I use JFrog Artifactory as a remote repository for Gradle dependencies?

Yes, you can use JFrog Artifactory as a remote repository for Gradle dependencies. By configuring your Gradle build script to resolve dependencies from Artifactory, you can proxy external repositories such as Maven Central or npm and cache the retrieved artifacts. This improves build reliability and speeds up builds by reducing external calls and providing local access to frequently used dependencies.

What types of artifacts can JFrog Artifactory manage for Gradle projects?

JFrog Artifactory can manage a variety of artifact types generated from Gradle projects, including: