Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
pantsbuild.pants / backend / jvm / subsystems / resolve_subsystem.py
Size: Mime:
# Copyright 2017 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

import logging

from pants.subsystem.subsystem import Subsystem

logger = logging.getLogger(__name__)


class JvmResolveSubsystem(Subsystem):
    """Used to keep track of global jvm resolver settings.

    :API: public
    """

    options_scope = "resolver"

    # TODO: Convert to an enum.
    CHOICES = ["ivy", "coursier"]

    @classmethod
    def register_options(cls, register):
        super().register_options(register)
        register(
            "--resolver",
            choices=cls.CHOICES,
            default="ivy",
            help="Resolver to use for external jvm dependencies.",
        )