mirror of
https://github.com/alibaba/testable-mock.git
synced 2025-01-11 04:40:12 +08:00
34 lines
882 B
Plaintext
34 lines
882 B
Plaintext
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
kotlin("jvm") version "1.4.10"
|
|
}
|
|
|
|
group = "com.alibaba.testable"
|
|
version = "1.0.0-SNAPSHOT"
|
|
java.sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
|
|
testImplementation("org.junit.jupiter:junit-jupiter:5.6.2")
|
|
testImplementation("com.alibaba.testable:testable-all:0.5.2")
|
|
testAnnotationProcessor("com.alibaba.testable:testable-processor:0.5.2")
|
|
}
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
kotlinOptions {
|
|
freeCompilerArgs = listOf("-Xjsr305=strict")
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|
|
|
|
tasks.withType<Test> {
|
|
jvmArgs("-javaagent:${classpath.find { it.name.contains("testable-agent") }!!.absolutePath}")
|
|
useJUnitPlatform()
|
|
}
|