1. <i id='Cswhs'><tr id='Cswhs'><dt id='Cswhs'><q id='Cswhs'><span id='Cswhs'><b id='Cswhs'><form id='Cswhs'><ins id='Cswhs'></ins><ul id='Cswhs'></ul><sub id='Cswhs'></sub></form><legend id='Cswhs'></legend><bdo id='Cswhs'><pre id='Cswhs'><center id='Cswhs'></center></pre></bdo></b><th id='Cswhs'></th></span></q></dt></tr></i><div id='Cswhs'><tfoot id='Cswhs'></tfoot><dl id='Cswhs'><fieldset id='Cswhs'></fieldset></dl></div>
      • <bdo id='Cswhs'></bdo><ul id='Cswhs'></ul>

        <legend id='Cswhs'><style id='Cswhs'><dir id='Cswhs'><q id='Cswhs'></q></dir></style></legend>
      1. <small id='Cswhs'></small><noframes id='Cswhs'>

        <tfoot id='Cswhs'></tfoot>

        如何使用 Gradle 拉取 Maven 测试罐?

        How Do I Pull Maven Test Jars Using Gradle?(如何使用 Gradle 拉取 Maven 测试罐?)

      2. <small id='oQufG'></small><noframes id='oQufG'>

          <bdo id='oQufG'></bdo><ul id='oQufG'></ul>
          <i id='oQufG'><tr id='oQufG'><dt id='oQufG'><q id='oQufG'><span id='oQufG'><b id='oQufG'><form id='oQufG'><ins id='oQufG'></ins><ul id='oQufG'></ul><sub id='oQufG'></sub></form><legend id='oQufG'></legend><bdo id='oQufG'><pre id='oQufG'><center id='oQufG'></center></pre></bdo></b><th id='oQufG'></th></span></q></dt></tr></i><div id='oQufG'><tfoot id='oQufG'></tfoot><dl id='oQufG'><fieldset id='oQufG'></fieldset></dl></div>
          <legend id='oQufG'><style id='oQufG'><dir id='oQufG'><q id='oQufG'></q></dir></style></legend>

          1. <tfoot id='oQufG'></tfoot>
                  <tbody id='oQufG'></tbody>
                  本文介绍了如何使用 Gradle 拉取 Maven 测试罐?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在 Maven 中,我可以为依赖解析指定一个类型".我正在尝试拉下 tests.jar.我如何使用 Gradle 做到这一点?

                  In maven I can specify a "type" for dependency resolution. I am trying to pull down a tests.jar. How can I do this using Gradle?

                  我尝试过使用下面的 Gradle Dependency,但这并没有拉下 test.jar.

                  I have tried using the Gradle Dependency below, but this does not pull down test.jar.

                  testCompile(group: 'org.apache.hbase', name: 'hbase', version: '0.94.2', type: 'test-jar')
                  

                  Maven 依赖:

                  <dependency>
                      <groupId>org.apache.hbase</groupId>
                      <artifactId>hbase</artifactId>
                      <version>0.94.2</version>
                      <type>test-jar</type>
                      <scope>test</scope>
                  </dependency>
                  

                  详情: Gradle 1.7

                  details: Gradle 1.7

                  我正在尝试从 Maven 中心

                  推荐答案

                  Gradle 没有 Maven 的 <type> 的直接等价物,而是 classifier: 'tests'code> 应该在这里工作(而不是 type: ...).

                  Gradle doesn't have a direct equivalent of Maven's <type>, but classifier: 'tests' should work here (instead of type: ...).

                  这篇关于如何使用 Gradle 拉取 Maven 测试罐?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                  How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                  Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                  Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                  How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                  How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)

                    <legend id='pcPvh'><style id='pcPvh'><dir id='pcPvh'><q id='pcPvh'></q></dir></style></legend>

                      <small id='pcPvh'></small><noframes id='pcPvh'>

                    1. <i id='pcPvh'><tr id='pcPvh'><dt id='pcPvh'><q id='pcPvh'><span id='pcPvh'><b id='pcPvh'><form id='pcPvh'><ins id='pcPvh'></ins><ul id='pcPvh'></ul><sub id='pcPvh'></sub></form><legend id='pcPvh'></legend><bdo id='pcPvh'><pre id='pcPvh'><center id='pcPvh'></center></pre></bdo></b><th id='pcPvh'></th></span></q></dt></tr></i><div id='pcPvh'><tfoot id='pcPvh'></tfoot><dl id='pcPvh'><fieldset id='pcPvh'></fieldset></dl></div>
                        <bdo id='pcPvh'></bdo><ul id='pcPvh'></ul>
                          <tbody id='pcPvh'></tbody>
                        <tfoot id='pcPvh'></tfoot>