From 495c08f716c2d144e36b353e07d27fe9a437ead9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=91=E6=88=9F?= Date: Tue, 8 Dec 2020 16:22:14 +0800 Subject: [PATCH] extra common configure to parent pom --- README.md | 1 + demo/java-demo/build.gradle | 3 +- demo/kotlin-demo/build.gradle.kts | 3 +- pom.xml | 2 +- testable-agent/pom.xml | 40 ++++---------------------- testable-all/pom.xml | 34 +++++----------------- testable-core/pom.xml | 37 ++++-------------------- testable-maven-plugin/pom.xml | 41 ++++---------------------- testable-parent/pom.xml | 48 +++++++++++++++++++++++++++++++ testable-processor/pom.xml | 37 ++++-------------------- 10 files changed, 83 insertions(+), 163 deletions(-) create mode 100644 testable-parent/pom.xml diff --git a/README.md b/README.md index 7065c03..629bc09 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ ## 目录结构 ```bash +|-- testable-parent ➜ 提供各子模块的公共父pom文件 |-- testable-all ➜ 依赖聚合,便于一次性引用所有子模块功能 |-- testable-processor ➜ 编译期代码预处理模块,提供测试辅助功能 |-- testable-agent ➜ JavaAgent模块,提供Mock测试相关功能 diff --git a/demo/java-demo/build.gradle b/demo/java-demo/build.gradle index 5fda0d2..7346440 100644 --- a/demo/java-demo/build.gradle +++ b/demo/java-demo/build.gradle @@ -12,9 +12,8 @@ repositories { dependencies { testImplementation('org.junit.jupiter:junit-jupiter:5.6.2') - testImplementation('com.alibaba.testable:testable-processor:0.3.3-SNAPSHOT') + testImplementation('com.alibaba.testable:testable-all:0.3.3-SNAPSHOT') testAnnotationProcessor('com.alibaba.testable:testable-processor:0.3.3-SNAPSHOT') - testRuntimeOnly('com.alibaba.testable:testable-agent:0.3.3-SNAPSHOT') } test { diff --git a/demo/kotlin-demo/build.gradle.kts b/demo/kotlin-demo/build.gradle.kts index 47ef3c1..6dd62a6 100644 --- a/demo/kotlin-demo/build.gradle.kts +++ b/demo/kotlin-demo/build.gradle.kts @@ -16,9 +16,8 @@ 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-processor:0.3.3-SNAPSHOT") + testImplementation("com.alibaba.testable:testable-all:0.3.3-SNAPSHOT") testAnnotationProcessor("com.alibaba.testable:testable-processor:0.3.3-SNAPSHOT") - testRuntimeOnly("com.alibaba.testable:testable-agent:0.3.3-SNAPSHOT") } tasks.withType { diff --git a/pom.xml b/pom.xml index fcf12b7..38fdddb 100755 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.alibaba.testable - testable-parent + testable-aggregate 1.0.0-SNAPSHOT pom diff --git a/testable-agent/pom.xml b/testable-agent/pom.xml index c2c478e..78a5a86 100755 --- a/testable-agent/pom.xml +++ b/testable-agent/pom.xml @@ -3,47 +3,19 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - com.alibaba.testable + + com.alibaba.testable + testable-parent + 0.3.3-SNAPSHOT + ../testable-parent + testable-agent - 0.3.3-SNAPSHOT jar testable-agent - Unit test enhancement toolkit - https://github.com/alibaba/testable-mock - - - MIT License - https://github.com/alibaba/testable-mock/blob/master/LICENSE - repo - - - - - 金戟 - jinji.lf@alibaba-inc.com - - - - scm:git:git@github.com:alibaba/testable-mock.git - git@github.com:alibaba/testable-mock.git - HEAD - - 1.6 - 1.6 - UTF-8 8.0.1 5.6.2 - 0.3.3-SNAPSHOT - 3.8.1 - 3.0.0-M5 - 3.2.0 - 3.2.4 - 3.2.0 - 3.2.0 - 1.6 - 1.6.8 diff --git a/testable-all/pom.xml b/testable-all/pom.xml index 08e66e9..608520e 100644 --- a/testable-all/pom.xml +++ b/testable-all/pom.xml @@ -3,35 +3,15 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - com.alibaba.testable + + com.alibaba.testable + testable-parent + 0.3.3-SNAPSHOT + ../testable-parent + testable-all - 0.3.3-SNAPSHOT - jar + pom testable-all - Unit test enhancement toolkit - https://github.com/alibaba/testable-mock - - - MIT License - https://github.com/alibaba/testable-mock/blob/master/LICENSE - repo - - - - - 金戟 - jinji.lf@alibaba-inc.com - - - - scm:git:git@github.com:alibaba/testable-mock.git - git@github.com:alibaba/testable-mock.git - HEAD - - - - 0.3.3-SNAPSHOT - diff --git a/testable-core/pom.xml b/testable-core/pom.xml index ce15bec..d0406e5 100644 --- a/testable-core/pom.xml +++ b/testable-core/pom.xml @@ -3,43 +3,18 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - com.alibaba.testable + + com.alibaba.testable + testable-parent + 0.3.3-SNAPSHOT + ../testable-parent + testable-core - 0.3.3-SNAPSHOT jar testable-core - Unit test enhancement toolkit - https://github.com/alibaba/testable-mock - - - MIT License - https://github.com/alibaba/testable-mock/blob/master/LICENSE - repo - - - - - 金戟 - jinji.lf@alibaba-inc.com - - - - scm:git:git@github.com:alibaba/testable-mock.git - git@github.com:alibaba/testable-mock.git - HEAD - - 1.6 - 1.6 - UTF-8 5.6.2 - 3.8.1 - 3.0.0-M5 - 3.2.0 - 3.2.0 - 1.6 - 1.6.8 diff --git a/testable-maven-plugin/pom.xml b/testable-maven-plugin/pom.xml index f431a83..ba34f71 100644 --- a/testable-maven-plugin/pom.xml +++ b/testable-maven-plugin/pom.xml @@ -3,44 +3,15 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 - com.alibaba.testable + + com.alibaba.testable + testable-parent + 0.3.3-SNAPSHOT + ../testable-parent + testable-maven-plugin - 0.3.3-SNAPSHOT maven-plugin testable-maven-plugin - Unit test enhancement toolkit - https://github.com/alibaba/testable-mock - - - MIT License - https://github.com/alibaba/testable-mock/blob/master/LICENSE - repo - - - - - 金戟 - jinji.lf@alibaba-inc.com - - - - scm:git:git@github.com:alibaba/testable-mock.git - git@github.com:alibaba/testable-mock.git - HEAD - - - - 0.3.3-SNAPSHOT - 1.6 - 1.6 - UTF-8 - 3.8.1 - 3.6.0 - 3.2.0 - 3.2.0 - 1.6 - 1.6.8 - diff --git a/testable-parent/pom.xml b/testable-parent/pom.xml new file mode 100644 index 0000000..3880c5f --- /dev/null +++ b/testable-parent/pom.xml @@ -0,0 +1,48 @@ + + + 4.0.0 + com.alibaba.testable + testable-parent + 0.3.3-SNAPSHOT + pom + testable-parent + Unit test enhancement toolkit + https://github.com/alibaba/testable-mock + + + MIT License + https://github.com/alibaba/testable-mock/blob/master/LICENSE + repo + + + + + 金戟 + jinji.lf@alibaba-inc.com + + + + scm:git:git@github.com:alibaba/testable-mock.git + git@github.com:alibaba/testable-mock.git + HEAD + + + + 1.6 + 1.6 + UTF-8 + 3.8.1 + 3.0.0-M5 + 3.2.0 + 3.2.4 + 3.2.0 + 3.2.0 + 1.6 + 1.6.8 + 3.6.0 + 0.3.3-SNAPSHOT + + + diff --git a/testable-processor/pom.xml b/testable-processor/pom.xml index 592bb0b..465d605 100644 --- a/testable-processor/pom.xml +++ b/testable-processor/pom.xml @@ -3,43 +3,18 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - com.alibaba.testable + + com.alibaba.testable + testable-parent + 0.3.3-SNAPSHOT + ../testable-parent + testable-processor - 0.3.3-SNAPSHOT jar testable-processor - Unit test enhancement toolkit - https://github.com/alibaba/testable-mock - - - MIT License - https://github.com/alibaba/testable-mock/blob/master/LICENSE - repo - - - - - 金戟 - jinji.lf@alibaba-inc.com - - - - scm:git:git@github.com:alibaba/testable-mock.git - git@github.com:alibaba/testable-mock.git - HEAD - - 1.6 - 1.6 - UTF-8 5.6.2 - 3.8.1 - 3.0.0-M5 - 3.2.0 - 3.2.0 - 1.6 - 1.6.8