Skip to content

Commit

Permalink
Depreciate resolve.ivy (pantsbuild#8364)
Browse files Browse the repository at this point in the history
Remove at 1.27.
Publishing with ivy will remain.
  • Loading branch information
wisechengyi authored Oct 1, 2019
1 parent 9b637c2 commit 12411c1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/python/pants/backend/jvm/tasks/ivy_resolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from pants.backend.jvm.tasks.classpath_products import ClasspathProducts
from pants.backend.jvm.tasks.ivy_task_mixin import IvyTaskMixin
from pants.backend.jvm.tasks.nailgun_task import NailgunTask
from pants.base.deprecated import deprecated, deprecated_conditional
from pants.base.exceptions import TaskError
from pants.invalidation.cache_manager import VersionedTargetSet
from pants.java.jar.jar_dependency import JarDependency
Expand Down Expand Up @@ -85,6 +86,15 @@ def execute(self):
"""Resolves the specified confs for the configured targets and returns an iterator over
tuples of (conf, jar path).
"""

deprecated_conditional(
lambda: JvmResolveSubsystem.global_instance().get_options().resolver == 'ivy',
removal_version='1.27.0.dev0',
entity_description='Ivy Resolve',
hint_message='resolve.ivy as well as --resolver-resolver=ivy will be removed.'
'Please use --resolver-resolver=coursier instead and refer to '
'https://www.pantsbuild.org/jvm_projects.html#coursier for setup.')

if JvmResolveSubsystem.global_instance().get_options().resolver != 'ivy':
return

Expand Down

0 comments on commit 12411c1

Please sign in to comment.