testable-mock/demo/java-demo/build.gradle

28 lines
582 B
Groovy
Raw Normal View History

2020-11-28 22:51:09 +08:00
plugins {
id 'java'
}
group = 'com.alibaba.testable'
version = '1.0.0-SNAPSHOT'
sourceCompatibility = '8'
repositories {
mavenLocal()
2020-11-28 22:51:09 +08:00
mavenCentral()
}
dependencies {
testImplementation('org.junit.jupiter:junit-jupiter:5.6.2')
2021-03-27 20:05:21 +08:00
testImplementation('com.alibaba.testable:testable-all:0.6.0')
testAnnotationProcessor('com.alibaba.testable:testable-processor:0.6.0')
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()
}