From 2c18ea12edaf7329fecc6604859b273ab2c5c159 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=91=E6=88=9F?= Date: Thu, 4 Feb 2021 17:59:26 +0800 Subject: [PATCH] use space instead of tab --- demo/java-demo/pom.xml | 14 +- demo/kotlin-demo/build.gradle.kts | 26 ++-- demo/kotlin-demo/pom.xml | 222 +++++++++++++++--------------- 3 files changed, 131 insertions(+), 131 deletions(-) diff --git a/demo/java-demo/pom.xml b/demo/java-demo/pom.xml index 851cea0..03bec7b 100644 --- a/demo/java-demo/pom.xml +++ b/demo/java-demo/pom.xml @@ -33,14 +33,14 @@ - - org.apache.maven.plugins - maven-surefire-plugin + + org.apache.maven.plugins + maven-surefire-plugin 3.0.0-M5 - - @{argLine} -javaagent:${settings.localRepository}/com/alibaba/testable/testable-agent/${testable.version}/testable-agent-${testable.version}.jar - - + + @{argLine} -javaagent:${settings.localRepository}/com/alibaba/testable/testable-agent/${testable.version}/testable-agent-${testable.version}.jar + + diff --git a/demo/kotlin-demo/build.gradle.kts b/demo/kotlin-demo/build.gradle.kts index e972a41..7903156 100644 --- a/demo/kotlin-demo/build.gradle.kts +++ b/demo/kotlin-demo/build.gradle.kts @@ -1,7 +1,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - kotlin("jvm") version "1.4.10" + kotlin("jvm") version "1.4.10" } group = "com.alibaba.testable" @@ -9,25 +9,25 @@ version = "1.0.0-SNAPSHOT" java.sourceCompatibility = JavaVersion.VERSION_1_8 repositories { - mavenCentral() + 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.4.11") - testAnnotationProcessor("com.alibaba.testable:testable-processor:0.4.11") + 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.4.11") + testAnnotationProcessor("com.alibaba.testable:testable-processor:0.4.11") } tasks.withType { - kotlinOptions { - freeCompilerArgs = listOf("-Xjsr305=strict") - jvmTarget = "1.8" - } + kotlinOptions { + freeCompilerArgs = listOf("-Xjsr305=strict") + jvmTarget = "1.8" + } } tasks.withType { - jvmArgs("-javaagent:${classpath.find { it.name.contains("testable-agent") }!!.absolutePath}") - useJUnitPlatform() + jvmArgs("-javaagent:${classpath.find { it.name.contains("testable-agent") }!!.absolutePath}") + useJUnitPlatform() } diff --git a/demo/kotlin-demo/pom.xml b/demo/kotlin-demo/pom.xml index 426067c..d2303f2 100644 --- a/demo/kotlin-demo/pom.xml +++ b/demo/kotlin-demo/pom.xml @@ -1,119 +1,119 @@ - 4.0.0 - com.alibaba.testable - kotlin-demo - 1.0.0-SNAPSHOT - kotlin-demo - Demo project for TestableMock + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 + com.alibaba.testable + kotlin-demo + 1.0.0-SNAPSHOT + kotlin-demo + Demo project for TestableMock - - 1.8 - 1.3.72 - 1.8 - 1.8 - 5.6.2 - 0.4.11 - + + 1.8 + 1.3.72 + 1.8 + 1.8 + 5.6.2 + 0.4.11 + - - - org.jetbrains.kotlin - kotlin-reflect - ${kotlin.version} - - - org.jetbrains.kotlin - kotlin-stdlib-jdk8 - ${kotlin.version} - + + + org.jetbrains.kotlin + kotlin-reflect + ${kotlin.version} + + + org.jetbrains.kotlin + kotlin-stdlib-jdk8 + ${kotlin.version} + - - com.alibaba.testable - testable-all - ${testable.version} - test - - - org.junit.jupiter - junit-jupiter-api - ${junit.version} - test - - + + com.alibaba.testable + testable-all + ${testable.version} + test + + + org.junit.jupiter + junit-jupiter-api + ${junit.version} + test + + - - src/main/kotlin - ${project.basedir}/src/test/kotlin - - - org.apache.maven.plugins - maven-surefire-plugin - 3.0.0-M5 - - - - - - com.alibaba.testable - testable-maven-plugin - ${testable.version} - - - prepare - - prepare - - - - - - org.jacoco - jacoco-maven-plugin - 0.8.6 - - - prepare-agent - - prepare-agent - - - - report - prepare-package - - report - - - target/jacoco.exec - target/jacoco-ut - - - - - - org.jetbrains.kotlin - kotlin-maven-plugin - ${kotlin.version} - - - compile - compile - - compile - - - - test-compile - test-compile - - test-compile - - - - - - + + src/main/kotlin + ${project.basedir}/src/test/kotlin + + + org.apache.maven.plugins + maven-surefire-plugin + 3.0.0-M5 + + + + + + com.alibaba.testable + testable-maven-plugin + ${testable.version} + + + prepare + + prepare + + + + + + org.jacoco + jacoco-maven-plugin + 0.8.6 + + + prepare-agent + + prepare-agent + + + + report + prepare-package + + report + + + target/jacoco.exec + target/jacoco-ut + + + + + + org.jetbrains.kotlin + kotlin-maven-plugin + ${kotlin.version} + + + compile + compile + + compile + + + + test-compile + test-compile + + test-compile + + + + + +