2020-11-28 22:51:09 +08:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
}
|
|
|
|
|
|
|
|
group = 'com.alibaba.testable'
|
|
|
|
version = '1.0.0-SNAPSHOT'
|
|
|
|
sourceCompatibility = '8'
|
|
|
|
|
|
|
|
repositories {
|
2021-01-07 10:31:35 +08:00
|
|
|
mavenLocal()
|
2020-11-28 22:51:09 +08:00
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
testImplementation('org.junit.jupiter:junit-jupiter:5.6.2')
|
2021-03-13 09:35:33 +08:00
|
|
|
testImplementation('com.alibaba.testable:testable-all:0.5.2')
|
|
|
|
testAnnotationProcessor('com.alibaba.testable:testable-processor:0.5.2')
|
2020-11-28 22:51:09 +08:00
|
|
|
}
|
|
|
|
|
2021-01-06 16:31:05 +08:00
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.encoding = "UTF-8"
|
|
|
|
}
|
|
|
|
|
2020-11-28 22:51:09 +08:00
|
|
|
test {
|
|
|
|
jvmArgs "-javaagent:${classpath.find { it.name.contains("testable-agent") }.absolutePath}"
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|