mirror of
https://github.com/alibaba/testable-mock.git
synced 2025-01-11 12:50:19 +08:00
851ae91406
解决:Windows下文件分隔符替换多重转义,URLCloassLoader路径不合规的问题,增加本地maven仓库
28 lines
582 B
Groovy
28 lines
582 B
Groovy
plugins {
|
|
id 'java'
|
|
}
|
|
|
|
group = 'com.alibaba.testable'
|
|
version = '1.0.0-SNAPSHOT'
|
|
sourceCompatibility = '8'
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation('org.junit.jupiter:junit-jupiter:5.6.2')
|
|
testImplementation('com.alibaba.testable:testable-all:0.4.7')
|
|
testAnnotationProcessor('com.alibaba.testable:testable-processor:0.4.7')
|
|
}
|
|
|
|
tasks.withType(JavaCompile) {
|
|
options.encoding = "UTF-8"
|
|
}
|
|
|
|
test {
|
|
jvmArgs "-javaagent:${classpath.find { it.name.contains("testable-agent") }.absolutePath}"
|
|
useJUnitPlatform()
|
|
}
|