我有这个 build.gradle 文件
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'net.serenity-bdd.aggregator'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
}
buildscript {
repositories {
mavenLocal()
jcenter()
}
dependencies {
classpath("net.serenity-bdd:serenity-gradle-plugin:1.4.0")
}
}
dependencies {
testCompile('net.serenity-bdd:serenity-core:1.4.0')
testCompile('net.serenity-bdd:serenity-junit:1.4.0')
testCompile('junit:junit:4.12')
testCompile('org.assertj:assertj-core:1.7.0')
testCompile('org.slf4j:slf4j-simple:1.7.7')
}
gradle.startParameter.continueOnFailure = true
它将宁静库加载到项目中,但编译时某些类不可见: PageObject 类不可见
但它确实存在于外部库中:
我应该怎么做才能使它在测试类和页面对象类中可见?此外,当我通过输入库的完整路径手动导入时,gradle runner 无论如何都看不到这些类。