# Copyright 2017 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). """Generate web service client stubs from a Web Services Description Language (WSDL) file for calling a JAX-WS web service (deprecated).""" from pants.base.deprecated import _deprecated_contrib_plugin from pants.build_graph.build_file_aliases import BuildFileAliases from pants.goal.task_registrar import TaskRegistrar as task from pants.contrib.jax_ws.target_types import JaxWsLibrary from pants.contrib.jax_ws.targets.jax_ws_library import JaxWsLibrary as JaxWsLibraryV1 from pants.contrib.jax_ws.tasks.jax_ws_gen import JaxWsGen _deprecated_contrib_plugin("pantsbuild.pants.contrib.jax_ws") def build_file_aliases(): return BuildFileAliases(targets={"jax_ws_library": JaxWsLibraryV1}) def register_goals(): task(name="jax-ws", action=JaxWsGen).install("gen") def target_types(): return [JaxWsLibrary]
# Licensed under the Apache License, Version 2.0 (see LICENSE). """Support for C++ (deprecated).""" from pants.base.deprecated import _deprecated_contrib_plugin from pants.build_graph.build_file_aliases import BuildFileAliases from pants.goal.task_registrar import TaskRegistrar as task from pants.contrib.cpp.target_types import CppBinary, CppLibrary from pants.contrib.cpp.targets.cpp_binary import CppBinary as CppBinaryV1 from pants.contrib.cpp.targets.cpp_library import CppLibrary as CppLibraryV1 from pants.contrib.cpp.tasks.cpp_binary_create import CppBinaryCreate from pants.contrib.cpp.tasks.cpp_compile import CppCompile from pants.contrib.cpp.tasks.cpp_library_create import CppLibraryCreate from pants.contrib.cpp.tasks.cpp_run import CppRun _deprecated_contrib_plugin("pantsbuild.pants.contrib.cpp") def build_file_aliases(): return BuildFileAliases(targets={ "cpp_library": CppLibraryV1, "cpp_binary": CppBinaryV1 }) def register_goals(): task(name="cpp", action=CppCompile).install("compile") task(name="cpplib", action=CppLibraryCreate).install("binary") task(name="cpp", action=CppBinaryCreate).install("binary") task(name="cpp", action=CppRun).install("run")
# Licensed under the Apache License, Version 2.0 (see LICENSE). """Support for Scala.js (deprecated).""" from pants.base.deprecated import _deprecated_contrib_plugin from pants.build_graph.build_file_aliases import BuildFileAliases from pants.goal.task_registrar import TaskRegistrar as task from pants.contrib.node.tasks.node_resolve import NodeResolve from pants.contrib.scalajs.rules.targets import ScalaJSBinary, ScalaJSLibrary from pants.contrib.scalajs.subsystems.scala_js_platform import ScalaJSPlatform from pants.contrib.scalajs.targets.scala_js_binary import ScalaJSBinary as ScalaJSBinaryV1 from pants.contrib.scalajs.targets.scala_js_library import ScalaJSLibrary as ScalaJSLibraryV1 from pants.contrib.scalajs.tasks.scala_js_link import ScalaJSLink from pants.contrib.scalajs.tasks.scala_js_zinc_compile import ScalaJSZincCompile _deprecated_contrib_plugin("pantsbuild.pants.contrib.scalajs") def build_file_aliases(): return BuildFileAliases(targets={ "scala_js_binary": ScalaJSBinaryV1, "scala_js_library": ScalaJSLibraryV1 }) def register_goals(): NodeResolve.register_resolver_for_type(ScalaJSBinaryV1, ScalaJSPlatform) # NB: These task/goal assignments are pretty nuts, but are necessary in order to # prevent product-graph cycles between the JVM and node.js. # see https://github.com/pantsbuild/pants/labels/engine task(name="scala-js-compile", action=ScalaJSZincCompile).install("resolve")
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). """Thrift code generator for Android (deprecated). See https://github.com/microsoft/thrifty. """ from pants.base.deprecated import _deprecated_contrib_plugin from pants.build_graph.build_file_aliases import BuildFileAliases from pants.goal.task_registrar import TaskRegistrar as task from pants.contrib.thrifty.java_thrifty_gen import JavaThriftyGen from pants.contrib.thrifty.java_thrifty_library import JavaThriftyLibrary as JavaThriftyLibraryV1 from pants.contrib.thrifty.targets import JavaThriftyLibrary _deprecated_contrib_plugin("pantsbuild.pants.contrib.thrifty") def build_file_aliases(): return BuildFileAliases(targets={"java_thrifty_library": JavaThriftyLibraryV1}) def register_goals(): task(name="thrifty", action=JavaThriftyGen).install("gen") def targets2(): return [JavaThriftyLibrary]
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). """Autoformatter for Java to follow Google's Java Style guide (deprecated). See https://github.com/google/google-java-format. """ from pants.base.deprecated import _deprecated_contrib_plugin from pants.goal.task_registrar import TaskRegistrar as task from pants.contrib.googlejavaformat.googlejavaformat import ( GoogleJavaFormatLintTask, GoogleJavaFormatTask, ) _deprecated_contrib_plugin("pantsbuild.pants.contrib.googlejavaformat") def register_goals(): task(name="google-java-format", action=GoogleJavaFormatTask).install("fmt") task(name="google-java-format", action=GoogleJavaFormatLintTask).install("lint")
# Copyright 2017 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). """Linter for Java (deprecated). See https://errorprone.info. """ from pants.base.deprecated import _deprecated_contrib_plugin from pants.goal.task_registrar import TaskRegistrar as task from pants.contrib.errorprone.tasks.errorprone import ErrorProne _deprecated_contrib_plugin("pantsbuild.pants.contrib.errorprone") def register_goals(): task(name="errorprone", action=ErrorProne).install("compile")
# Copyright 2016 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). """Linter for Java (deprecated). See http://findbugs.sourceforge.net. """ from pants.base.deprecated import _deprecated_contrib_plugin from pants.goal.task_registrar import TaskRegistrar as task from pants.contrib.findbugs.tasks.findbugs import FindBugs _deprecated_contrib_plugin("pantsbuild.pants.contrib.findbugs") def register_goals(): task(name="findbugs", action=FindBugs).install("compile")