我正在研究 API 自动化,我在其中使用了放心和 Gradle 进行构建。当我在终端中运行 Gradle build 命令时,它不会运行我在主类中声明的 API。我的 build.gradle 我的如下 plugins { id 'java'}sourceSets { main.java.srcDir "src/main" main.resources.srcDir "src/main/resources"}group 'com.API_AUTO'version '1.0-SNAPSHOT'sourceCompatibility = 1.8repositories { mavenCentral()}dependencies { compile 'io.rest-assured:rest-assured:3.0.0' //compile "io.rest-assured, name: rest-assured, version: 3.0.2" compile group: 'org.testng', name: 'testng', version: '6.10' compile group: 'org.apache.poi', name: 'poi-ooxml', version: '3.15' compile group: 'net.sourceforge.jexcelapi', name: 'jxl', version: '2.6.12' compile group: 'commons-lang', name: 'commons-lang', version: '2.6' compile group: 'com.googlecode.htmlcompressor', name: 'htmlcompressor', version: '1.5.2' compile group: 'commons-dbutils', name: 'commons-dbutils', version: '1.6' compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.8.6' compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.8.6' compile group: 'mysql', name: 'mysql-connector-java', version: '6.0.5' compile group: "com.github.fge", name: "json-schema-validator", version: "2.2.6" compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1' compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1' compile group: 'org.json', name: 'json', version: '20160810' compile group: 'org.uncommons', name: 'reportng', version: '1.1.4' compile group: 'com.google.code.guice-repository', name: 'guice-repository', version: '2.1.0' compile group: 'org.easytesting', name: 'fest-assert-core', version: '2.0M10' compile group: 'org.uncommons', name: 'reportng', version: '1.1.4' compile group: 'org.apache.commons', name: 'commons-csv', version: '1.5'}
添加回答
举报
0/150
提交
取消