我将以下对黄瓜的依赖性添加到了gradle中。
但是当我执行 gradlew project:build 时,它不会添加到项目中, 可能的原因是什么?
dependencies {
// Cucumber Test Dependencies
applicationEnvTestCompile "${apiDriver}"
applicationEnvTestCompile "${testutilsSelenium}"
applicationEnvTestCompile "${webDriverFactory}"
applicationEnvTestCompile "${cucumberJunit}"
applicationEnvTestCompile "${cucumberJava}"
applicationEnvTestCompile "${cucumberGuice}"
// Application Test Dependencies
applicationEnvTestCompile configurations.compile
applicationEnvTestCompile configurations.compileOnly
applicationEnvTestCompile project(":application-test-environment")
applicationEnvTestCompile files(weblogicJerseyClientJar)
applicationEnvTestCompile files(weblogicJerseyCommonJar)
applicationEnvTestCompile files(weblogicJerseyGuavaJar)
applicationEnvTestCompile files(weblogicJerseyEntityFilteringJar)
applicationEnvTestCompile files(wlfullclientJarPath);
applicationEnvTestCompile "${unirestJava}"
applicationEnvTestCompile "${amapispec}"
applicationEnvTestCompile "${mxxml}"
applicationEnvTestCompile "${junit}"
applicationEnvTestCompile "${hamcrestLibrary}"
applicationEnvTestCompile "${restAssured}"
applicationEnvTestCompile "${restAssuredJson}"
applicationEnvTestCompile "${amWebDriver}"
applicationEnvTestRuntime "${slf4jApi}"
applicationEnvTestRuntime "${javaxJmsApi}"
applicationEnvTestRuntime files(weblogicJsonpJar)
applicationEnvTestRuntime files(weblogicJerseyServerJar)
applicationEnvTestRuntime files(weblogicJerseyJaxbJar)
applicationEnvTestRuntime files(weblogicJerseyJsonJacksonJar)
applicationEnvTestRuntime files(weblogicJerseyJsonProcessingJar)
applicationEnvTestRuntime files(weblogicJerseyMoxyJar)
applicationEnvTestRuntime files(weblogicJerseyMultipartJar)
applicationEnvTestRuntime files(weblogicJerseySseJar)
applicationEnvTestRuntime files(weblogicJsonpJaxrsJar)
// Database Environment Test Dependencies - Required for eclipse
testCompile project(":database-test-environment")
//Database Environment Test Dependencies
databaseEnvTestCompile configurations.compile
databaseEnvTestCompile configurations.compileOnly
databaseEnvTestCompile project(":database-test-environment")
}
eclipse {
classpath {
plusConfigurations.add configurations.applicationEnvTestCompile
plusConfigurations.add configurations.applicationEnvTestRuntime
}
}
我已按照以下方式运行构建
gradlew mxapiext:mxapiext-web:从cmd构建
mxapiext:mxapiext-web是我的项目。黄瓜依赖项不会添加到我的项目中