mirror of
https://github.com/alibaba/testable-mock.git
synced 2025-01-26 12:20:39 +08:00
extra common configure to parent pom
This commit is contained in:
parent
da650eb14d
commit
495c08f716
@ -9,6 +9,7 @@
|
|||||||
## 目录结构
|
## 目录结构
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|-- testable-parent ➜ 提供各子模块的公共父pom文件
|
||||||
|-- testable-all ➜ 依赖聚合,便于一次性引用所有子模块功能
|
|-- testable-all ➜ 依赖聚合,便于一次性引用所有子模块功能
|
||||||
|-- testable-processor ➜ 编译期代码预处理模块,提供测试辅助功能
|
|-- testable-processor ➜ 编译期代码预处理模块,提供测试辅助功能
|
||||||
|-- testable-agent ➜ JavaAgent模块,提供Mock测试相关功能
|
|-- testable-agent ➜ JavaAgent模块,提供Mock测试相关功能
|
||||||
|
@ -12,9 +12,8 @@ repositories {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
testImplementation('org.junit.jupiter:junit-jupiter:5.6.2')
|
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')
|
testAnnotationProcessor('com.alibaba.testable:testable-processor:0.3.3-SNAPSHOT')
|
||||||
testRuntimeOnly('com.alibaba.testable:testable-agent:0.3.3-SNAPSHOT')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
test {
|
test {
|
||||||
|
@ -16,9 +16,8 @@ dependencies {
|
|||||||
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
||||||
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
|
||||||
testImplementation("org.junit.jupiter:junit-jupiter:5.6.2")
|
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")
|
testAnnotationProcessor("com.alibaba.testable:testable-processor:0.3.3-SNAPSHOT")
|
||||||
testRuntimeOnly("com.alibaba.testable:testable-agent:0.3.3-SNAPSHOT")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<KotlinCompile> {
|
tasks.withType<KotlinCompile> {
|
||||||
|
2
pom.xml
2
pom.xml
@ -4,7 +4,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<groupId>com.alibaba.testable</groupId>
|
<groupId>com.alibaba.testable</groupId>
|
||||||
<artifactId>testable-parent</artifactId>
|
<artifactId>testable-aggregate</artifactId>
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
|
@ -3,47 +3,19 @@
|
|||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
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">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.alibaba.testable</groupId>
|
<parent>
|
||||||
|
<groupId>com.alibaba.testable</groupId>
|
||||||
|
<artifactId>testable-parent</artifactId>
|
||||||
|
<version>0.3.3-SNAPSHOT</version>
|
||||||
|
<relativePath>../testable-parent</relativePath>
|
||||||
|
</parent>
|
||||||
<artifactId>testable-agent</artifactId>
|
<artifactId>testable-agent</artifactId>
|
||||||
<version>0.3.3-SNAPSHOT</version>
|
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>testable-agent</name>
|
<name>testable-agent</name>
|
||||||
<description>Unit test enhancement toolkit</description>
|
|
||||||
<url>https://github.com/alibaba/testable-mock</url>
|
|
||||||
<licenses>
|
|
||||||
<license>
|
|
||||||
<name>MIT License</name>
|
|
||||||
<url>https://github.com/alibaba/testable-mock/blob/master/LICENSE</url>
|
|
||||||
<distribution>repo</distribution>
|
|
||||||
</license>
|
|
||||||
</licenses>
|
|
||||||
<developers>
|
|
||||||
<developer>
|
|
||||||
<name>金戟</name>
|
|
||||||
<email>jinji.lf@alibaba-inc.com</email>
|
|
||||||
</developer>
|
|
||||||
</developers>
|
|
||||||
<scm>
|
|
||||||
<connection>scm:git:git@github.com:alibaba/testable-mock.git</connection>
|
|
||||||
<url>git@github.com:alibaba/testable-mock.git</url>
|
|
||||||
<tag>HEAD</tag>
|
|
||||||
</scm>
|
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>1.6</java.version>
|
|
||||||
<project.compiler.level>1.6</project.compiler.level>
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
||||||
<asm.lib.version>8.0.1</asm.lib.version>
|
<asm.lib.version>8.0.1</asm.lib.version>
|
||||||
<junit.version>5.6.2</junit.version>
|
<junit.version>5.6.2</junit.version>
|
||||||
<testable.version>0.3.3-SNAPSHOT</testable.version>
|
|
||||||
<plugin.compiler.version>3.8.1</plugin.compiler.version>
|
|
||||||
<plugin.surefire.version>3.0.0-M5</plugin.surefire.version>
|
|
||||||
<plugin.jar.version>3.2.0</plugin.jar.version>
|
|
||||||
<plugin.shade.version>3.2.4</plugin.shade.version>
|
|
||||||
<plugin.source.version>3.2.0</plugin.source.version>
|
|
||||||
<plugin.javadoc.version>3.2.0</plugin.javadoc.version>
|
|
||||||
<plugin.gpg.version>1.6</plugin.gpg.version>
|
|
||||||
<plugin.staging.version>1.6.8</plugin.staging.version>
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@ -3,35 +3,15 @@
|
|||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
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">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.alibaba.testable</groupId>
|
<parent>
|
||||||
|
<groupId>com.alibaba.testable</groupId>
|
||||||
|
<artifactId>testable-parent</artifactId>
|
||||||
|
<version>0.3.3-SNAPSHOT</version>
|
||||||
|
<relativePath>../testable-parent</relativePath>
|
||||||
|
</parent>
|
||||||
<artifactId>testable-all</artifactId>
|
<artifactId>testable-all</artifactId>
|
||||||
<version>0.3.3-SNAPSHOT</version>
|
<packaging>pom</packaging>
|
||||||
<packaging>jar</packaging>
|
|
||||||
<name>testable-all</name>
|
<name>testable-all</name>
|
||||||
<description>Unit test enhancement toolkit</description>
|
|
||||||
<url>https://github.com/alibaba/testable-mock</url>
|
|
||||||
<licenses>
|
|
||||||
<license>
|
|
||||||
<name>MIT License</name>
|
|
||||||
<url>https://github.com/alibaba/testable-mock/blob/master/LICENSE</url>
|
|
||||||
<distribution>repo</distribution>
|
|
||||||
</license>
|
|
||||||
</licenses>
|
|
||||||
<developers>
|
|
||||||
<developer>
|
|
||||||
<name>金戟</name>
|
|
||||||
<email>jinji.lf@alibaba-inc.com</email>
|
|
||||||
</developer>
|
|
||||||
</developers>
|
|
||||||
<scm>
|
|
||||||
<connection>scm:git:git@github.com:alibaba/testable-mock.git</connection>
|
|
||||||
<url>git@github.com:alibaba/testable-mock.git</url>
|
|
||||||
<tag>HEAD</tag>
|
|
||||||
</scm>
|
|
||||||
|
|
||||||
<properties>
|
|
||||||
<testable.version>0.3.3-SNAPSHOT</testable.version>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -3,43 +3,18 @@
|
|||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
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">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.alibaba.testable</groupId>
|
<parent>
|
||||||
|
<groupId>com.alibaba.testable</groupId>
|
||||||
|
<artifactId>testable-parent</artifactId>
|
||||||
|
<version>0.3.3-SNAPSHOT</version>
|
||||||
|
<relativePath>../testable-parent</relativePath>
|
||||||
|
</parent>
|
||||||
<artifactId>testable-core</artifactId>
|
<artifactId>testable-core</artifactId>
|
||||||
<version>0.3.3-SNAPSHOT</version>
|
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>testable-core</name>
|
<name>testable-core</name>
|
||||||
<description>Unit test enhancement toolkit</description>
|
|
||||||
<url>https://github.com/alibaba/testable-mock</url>
|
|
||||||
<licenses>
|
|
||||||
<license>
|
|
||||||
<name>MIT License</name>
|
|
||||||
<url>https://github.com/alibaba/testable-mock/blob/master/LICENSE</url>
|
|
||||||
<distribution>repo</distribution>
|
|
||||||
</license>
|
|
||||||
</licenses>
|
|
||||||
<developers>
|
|
||||||
<developer>
|
|
||||||
<name>金戟</name>
|
|
||||||
<email>jinji.lf@alibaba-inc.com</email>
|
|
||||||
</developer>
|
|
||||||
</developers>
|
|
||||||
<scm>
|
|
||||||
<connection>scm:git:git@github.com:alibaba/testable-mock.git</connection>
|
|
||||||
<url>git@github.com:alibaba/testable-mock.git</url>
|
|
||||||
<tag>HEAD</tag>
|
|
||||||
</scm>
|
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>1.6</java.version>
|
|
||||||
<project.compiler.level>1.6</project.compiler.level>
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
||||||
<junit.version>5.6.2</junit.version>
|
<junit.version>5.6.2</junit.version>
|
||||||
<plugin.compiler.version>3.8.1</plugin.compiler.version>
|
|
||||||
<plugin.surefire.version>3.0.0-M5</plugin.surefire.version>
|
|
||||||
<plugin.source.version>3.2.0</plugin.source.version>
|
|
||||||
<plugin.javadoc.version>3.2.0</plugin.javadoc.version>
|
|
||||||
<plugin.gpg.version>1.6</plugin.gpg.version>
|
|
||||||
<plugin.staging.version>1.6.8</plugin.staging.version>
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@ -3,44 +3,15 @@
|
|||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
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">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.alibaba.testable</groupId>
|
<parent>
|
||||||
|
<groupId>com.alibaba.testable</groupId>
|
||||||
|
<artifactId>testable-parent</artifactId>
|
||||||
|
<version>0.3.3-SNAPSHOT</version>
|
||||||
|
<relativePath>../testable-parent</relativePath>
|
||||||
|
</parent>
|
||||||
<artifactId>testable-maven-plugin</artifactId>
|
<artifactId>testable-maven-plugin</artifactId>
|
||||||
<version>0.3.3-SNAPSHOT</version>
|
|
||||||
<packaging>maven-plugin</packaging>
|
<packaging>maven-plugin</packaging>
|
||||||
<name>testable-maven-plugin</name>
|
<name>testable-maven-plugin</name>
|
||||||
<description>Unit test enhancement toolkit</description>
|
|
||||||
<url>https://github.com/alibaba/testable-mock</url>
|
|
||||||
<licenses>
|
|
||||||
<license>
|
|
||||||
<name>MIT License</name>
|
|
||||||
<url>https://github.com/alibaba/testable-mock/blob/master/LICENSE</url>
|
|
||||||
<distribution>repo</distribution>
|
|
||||||
</license>
|
|
||||||
</licenses>
|
|
||||||
<developers>
|
|
||||||
<developer>
|
|
||||||
<name>金戟</name>
|
|
||||||
<email>jinji.lf@alibaba-inc.com</email>
|
|
||||||
</developer>
|
|
||||||
</developers>
|
|
||||||
<scm>
|
|
||||||
<connection>scm:git:git@github.com:alibaba/testable-mock.git</connection>
|
|
||||||
<url>git@github.com:alibaba/testable-mock.git</url>
|
|
||||||
<tag>HEAD</tag>
|
|
||||||
</scm>
|
|
||||||
|
|
||||||
<properties>
|
|
||||||
<testable.version>0.3.3-SNAPSHOT</testable.version>
|
|
||||||
<java.version>1.6</java.version>
|
|
||||||
<project.compiler.level>1.6</project.compiler.level>
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
||||||
<plugin.compiler.version>3.8.1</plugin.compiler.version>
|
|
||||||
<plugin.maven.version>3.6.0</plugin.maven.version>
|
|
||||||
<plugin.source.version>3.2.0</plugin.source.version>
|
|
||||||
<plugin.javadoc.version>3.2.0</plugin.javadoc.version>
|
|
||||||
<plugin.gpg.version>1.6</plugin.gpg.version>
|
|
||||||
<plugin.staging.version>1.6.8</plugin.staging.version>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
48
testable-parent/pom.xml
Normal file
48
testable-parent/pom.xml
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
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">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>com.alibaba.testable</groupId>
|
||||||
|
<artifactId>testable-parent</artifactId>
|
||||||
|
<version>0.3.3-SNAPSHOT</version>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
<name>testable-parent</name>
|
||||||
|
<description>Unit test enhancement toolkit</description>
|
||||||
|
<url>https://github.com/alibaba/testable-mock</url>
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>MIT License</name>
|
||||||
|
<url>https://github.com/alibaba/testable-mock/blob/master/LICENSE</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
<developers>
|
||||||
|
<developer>
|
||||||
|
<name>金戟</name>
|
||||||
|
<email>jinji.lf@alibaba-inc.com</email>
|
||||||
|
</developer>
|
||||||
|
</developers>
|
||||||
|
<scm>
|
||||||
|
<connection>scm:git:git@github.com:alibaba/testable-mock.git</connection>
|
||||||
|
<url>git@github.com:alibaba/testable-mock.git</url>
|
||||||
|
<tag>HEAD</tag>
|
||||||
|
</scm>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<java.version>1.6</java.version>
|
||||||
|
<project.compiler.level>1.6</project.compiler.level>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<plugin.compiler.version>3.8.1</plugin.compiler.version>
|
||||||
|
<plugin.surefire.version>3.0.0-M5</plugin.surefire.version>
|
||||||
|
<plugin.jar.version>3.2.0</plugin.jar.version>
|
||||||
|
<plugin.shade.version>3.2.4</plugin.shade.version>
|
||||||
|
<plugin.source.version>3.2.0</plugin.source.version>
|
||||||
|
<plugin.javadoc.version>3.2.0</plugin.javadoc.version>
|
||||||
|
<plugin.gpg.version>1.6</plugin.gpg.version>
|
||||||
|
<plugin.staging.version>1.6.8</plugin.staging.version>
|
||||||
|
<plugin.maven.version>3.6.0</plugin.maven.version>
|
||||||
|
<testable.version>0.3.3-SNAPSHOT</testable.version>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
</project>
|
@ -3,43 +3,18 @@
|
|||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
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">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.alibaba.testable</groupId>
|
<parent>
|
||||||
|
<groupId>com.alibaba.testable</groupId>
|
||||||
|
<artifactId>testable-parent</artifactId>
|
||||||
|
<version>0.3.3-SNAPSHOT</version>
|
||||||
|
<relativePath>../testable-parent</relativePath>
|
||||||
|
</parent>
|
||||||
<artifactId>testable-processor</artifactId>
|
<artifactId>testable-processor</artifactId>
|
||||||
<version>0.3.3-SNAPSHOT</version>
|
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>testable-processor</name>
|
<name>testable-processor</name>
|
||||||
<description>Unit test enhancement toolkit</description>
|
|
||||||
<url>https://github.com/alibaba/testable-mock</url>
|
|
||||||
<licenses>
|
|
||||||
<license>
|
|
||||||
<name>MIT License</name>
|
|
||||||
<url>https://github.com/alibaba/testable-mock/blob/master/LICENSE</url>
|
|
||||||
<distribution>repo</distribution>
|
|
||||||
</license>
|
|
||||||
</licenses>
|
|
||||||
<developers>
|
|
||||||
<developer>
|
|
||||||
<name>金戟</name>
|
|
||||||
<email>jinji.lf@alibaba-inc.com</email>
|
|
||||||
</developer>
|
|
||||||
</developers>
|
|
||||||
<scm>
|
|
||||||
<connection>scm:git:git@github.com:alibaba/testable-mock.git</connection>
|
|
||||||
<url>git@github.com:alibaba/testable-mock.git</url>
|
|
||||||
<tag>HEAD</tag>
|
|
||||||
</scm>
|
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>1.6</java.version>
|
|
||||||
<project.compiler.level>1.6</project.compiler.level>
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
||||||
<junit.version>5.6.2</junit.version>
|
<junit.version>5.6.2</junit.version>
|
||||||
<plugin.compiler.version>3.8.1</plugin.compiler.version>
|
|
||||||
<plugin.surefire.version>3.0.0-M5</plugin.surefire.version>
|
|
||||||
<plugin.source.version>3.2.0</plugin.source.version>
|
|
||||||
<plugin.javadoc.version>3.2.0</plugin.javadoc.version>
|
|
||||||
<plugin.gpg.version>1.6</plugin.gpg.version>
|
|
||||||
<plugin.staging.version>1.6.8</plugin.staging.version>
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
Loading…
Reference in New Issue
Block a user