diff --git a/testable-agent/pom.xml b/testable-agent/pom.xml index 44df731..cafd485 100755 --- a/testable-agent/pom.xml +++ b/testable-agent/pom.xml @@ -1,102 +1,177 @@ <?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" +<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> + <modelVersion>4.0.0</modelVersion> + <groupId>com.alibaba.testable</groupId> + <artifactId>testable-agent</artifactId> + <version>0.2.2-SNAPSHOT</version> + <packaging>jar</packaging> + <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> - <groupId>com.alibaba.testable</groupId> - <artifactId>testable-agent</artifactId> - <version>0.2.2-SNAPSHOT</version> - <packaging>jar</packaging> - <name>testable-agent</name> + <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> + <junit.version>5.6.2</junit.version> + <testable.version>0.2.2-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.0</plugin.gpg.version> + <plugin.staging.version>1.6.8</plugin.staging.version> + </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> - <junit.version>5.6.2</junit.version> - <testable.version>0.2.2-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> - </properties> + <dependencies> + <dependency> + <groupId>org.ow2.asm</groupId> + <artifactId>asm-tree</artifactId> + <version>${asm.lib.version}</version> + </dependency> + <dependency> + <groupId>org.junit.jupiter</groupId> + <artifactId>junit-jupiter-api</artifactId> + <version>${junit.version}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>com.alibaba.testable</groupId> + <artifactId>testable-core</artifactId> + <version>${testable.version}</version> + <scope>provided</scope> + </dependency> + </dependencies> - <dependencies> - <dependency> - <groupId>org.ow2.asm</groupId> - <artifactId>asm-tree</artifactId> - <version>${asm.lib.version}</version> - </dependency> - <dependency> - <groupId>org.junit.jupiter</groupId> - <artifactId>junit-jupiter-api</artifactId> - <version>${junit.version}</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>com.alibaba.testable</groupId> - <artifactId>testable-core</artifactId> - <version>${testable.version}</version> - <scope>provided</scope> - </dependency> - </dependencies> + <build> + <finalName>testable-agent</finalName> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>${plugin.compiler.version}</version> + <configuration> + <source>${project.compiler.level}</source> + <target>${project.compiler.level}</target> + <encoding>${project.build.sourceEncoding}</encoding> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <version>${plugin.jar.version}</version> + <configuration> + <archive> + <manifestEntries> + <Premain-Class>com.alibaba.testable.agent.PreMain</Premain-Class> + <Can-Retransform-Classes>true</Can-Retransform-Classes> + </manifestEntries> + </archive> + </configuration> + </plugin> - <build> - <finalName>testable-agent</finalName> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <version>${plugin.compiler.version}</version> - <configuration> - <source>${project.compiler.level}</source> - <target>${project.compiler.level}</target> - <encoding>${project.build.sourceEncoding}</encoding> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jar-plugin</artifactId> - <version>${plugin.jar.version}</version> - <configuration> - <archive> - <manifestEntries> - <Premain-Class>com.alibaba.testable.agent.PreMain</Premain-Class> - <Can-Retransform-Classes>true</Can-Retransform-Classes> - </manifestEntries> - </archive> - </configuration> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-shade-plugin</artifactId> - <version>${plugin.shade.version}</version> - <executions> - <execution> - <phase>package</phase> - <goals> - <goal>shade</goal> - </goals> - <configuration> - <relocations> - <relocation> - <pattern>org.objectweb.asm</pattern> - <shadedPattern>agent.org.objectweb.asm</shadedPattern> - </relocation> - </relocations> - <createDependencyReducedPom>false</createDependencyReducedPom> - </configuration> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>${plugin.surefire.version}</version> - </plugin> - </plugins> - </build> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <version>${plugin.shade.version}</version> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + <configuration> + <relocations> + <relocation> + <pattern>org.objectweb.asm</pattern> + <shadedPattern>agent.org.objectweb.asm</shadedPattern> + </relocation> + </relocations> + <createDependencyReducedPom>false</createDependencyReducedPom> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>${plugin.surefire.version}</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <version>${plugin.source.version}</version> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar-no-fork</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <version>${plugin.javadoc.version}</version> + <executions> + <execution> + <id>attach-javadocs</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-gpg-plugin</artifactId> + <version>${plugin.gpg.version}</version> + <executions> + <execution> + <id>sign-artifacts</id> + <phase>verify</phase> + <goals> + <goal>sign</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.sonatype.plugins</groupId> + <artifactId>nexus-staging-maven-plugin</artifactId> + <version>${plugin.staging.version}</version> + <extensions>true</extensions> + <configuration> + <serverId>ossrh</serverId> + <nexusUrl>https://oss.sonatype.org/</nexusUrl> + <autoReleaseAfterClose>true</autoReleaseAfterClose> + </configuration> + </plugin> + </plugins> + </build> </project> diff --git a/testable-core/pom.xml b/testable-core/pom.xml index d3db143..662fc37 100644 --- a/testable-core/pom.xml +++ b/testable-core/pom.xml @@ -3,20 +3,43 @@ 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> - - <description>Unit test enhancement toolkit</description> <groupId>com.alibaba.testable</groupId> <artifactId>testable-core</artifactId> <version>0.2.2-SNAPSHOT</version> + <packaging>jar</packaging> <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> <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> <plugin.compiler.version>3.8.1</plugin.compiler.version> <plugin.surefire.version>3.0.0-M5</plugin.surefire.version> - <junit.version>5.6.2</junit.version> + <plugin.source.version>3.2.0</plugin.source.version> + <plugin.javadoc.version>3.2.0</plugin.javadoc.version> + <plugin.gpg.version>1.6.0</plugin.gpg.version> + <plugin.staging.version>1.6.8</plugin.staging.version> </properties> <dependencies> @@ -45,6 +68,57 @@ <artifactId>maven-surefire-plugin</artifactId> <version>${plugin.surefire.version}</version> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <version>${plugin.source.version}</version> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar-no-fork</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <version>${plugin.javadoc.version}</version> + <executions> + <execution> + <id>attach-javadocs</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-gpg-plugin</artifactId> + <version>${plugin.gpg.version}</version> + <executions> + <execution> + <id>sign-artifacts</id> + <phase>verify</phase> + <goals> + <goal>sign</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.sonatype.plugins</groupId> + <artifactId>nexus-staging-maven-plugin</artifactId> + <version>${plugin.staging.version}</version> + <extensions>true</extensions> + <configuration> + <serverId>ossrh</serverId> + <nexusUrl>https://oss.sonatype.org/</nexusUrl> + <autoReleaseAfterClose>true</autoReleaseAfterClose> + </configuration> + </plugin> </plugins> </build> diff --git a/testable-maven-plugin/pom.xml b/testable-maven-plugin/pom.xml index 30cebb7..62c4006 100644 --- a/testable-maven-plugin/pom.xml +++ b/testable-maven-plugin/pom.xml @@ -1,64 +1,140 @@ -<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/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>com.alibaba.testable</groupId> - <artifactId>testable-maven-plugin</artifactId> - <packaging>maven-plugin</packaging> - <version>0.2.2-SNAPSHOT</version> - <name>testable-maven-plugin</name> - <url>http://maven.apache.org</url> +<?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/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>com.alibaba.testable</groupId> + <artifactId>testable-maven-plugin</artifactId> + <version>0.2.2-SNAPSHOT</version> + <packaging>maven-plugin</packaging> + <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.2.2-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> - <maven.plugin.version>3.6.0</maven.plugin.version> - </properties> + <properties> + <testable.version>0.2.2-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.0</plugin.gpg.version> + <plugin.staging.version>1.6.8</plugin.staging.version> + </properties> - <dependencies> - <dependency> - <groupId>org.apache.maven</groupId> - <artifactId>maven-plugin-api</artifactId> - <version>3.6.3</version> - </dependency> - <dependency> - <groupId>org.apache.maven</groupId> - <artifactId>maven-core</artifactId> - <version>3.6.3</version> - </dependency> - <dependency> - <groupId>org.apache.maven.plugin-tools</groupId> - <artifactId>maven-plugin-annotations</artifactId> - <version>3.6.0</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>com.alibaba.testable</groupId> - <artifactId>testable-agent</artifactId> - <version>${testable.version}</version> - </dependency> - </dependencies> + <dependencies> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-plugin-api</artifactId> + <version>3.6.3</version> + </dependency> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-core</artifactId> + <version>3.6.3</version> + </dependency> + <dependency> + <groupId>org.apache.maven.plugin-tools</groupId> + <artifactId>maven-plugin-annotations</artifactId> + <version>3.6.0</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>com.alibaba.testable</groupId> + <artifactId>testable-agent</artifactId> + <version>${testable.version}</version> + </dependency> + </dependencies> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <version>${plugin.compiler.version}</version> - <configuration> - <source>${project.compiler.level}</source> - <target>${project.compiler.level}</target> - <encoding>${project.build.sourceEncoding}</encoding> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-plugin-plugin</artifactId> - <version>${maven.plugin.version}</version> - </plugin> - </plugins> - </build> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>${plugin.compiler.version}</version> + <configuration> + <source>${project.compiler.level}</source> + <target>${project.compiler.level}</target> + <encoding>${project.build.sourceEncoding}</encoding> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-plugin-plugin</artifactId> + <version>${plugin.maven.version}</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <version>${plugin.source.version}</version> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar-no-fork</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <version>${plugin.javadoc.version}</version> + <executions> + <execution> + <id>attach-javadocs</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-gpg-plugin</artifactId> + <version>${plugin.gpg.version}</version> + <executions> + <execution> + <id>sign-artifacts</id> + <phase>verify</phase> + <goals> + <goal>sign</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.sonatype.plugins</groupId> + <artifactId>nexus-staging-maven-plugin</artifactId> + <version>${plugin.staging.version}</version> + <extensions>true</extensions> + <configuration> + <serverId>ossrh</serverId> + <nexusUrl>https://oss.sonatype.org/</nexusUrl> + <autoReleaseAfterClose>true</autoReleaseAfterClose> + </configuration> + </plugin> + </plugins> + </build> </project> diff --git a/testable-processor/pom.xml b/testable-processor/pom.xml index 8bb22af..d9d670d 100644 --- a/testable-processor/pom.xml +++ b/testable-processor/pom.xml @@ -3,21 +3,44 @@ 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> - - <description>Unit test enhancement toolkit</description> <groupId>com.alibaba.testable</groupId> <artifactId>testable-processor</artifactId> <version>0.2.2-SNAPSHOT</version> + <packaging>jar</packaging> <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> <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> <junit.version>5.6.2</junit.version> <testable.version>0.2.2-SNAPSHOT</testable.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.0</plugin.gpg.version> + <plugin.staging.version>1.6.8</plugin.staging.version> </properties> <dependencies> @@ -72,6 +95,57 @@ <artifactId>maven-surefire-plugin</artifactId> <version>${plugin.surefire.version}</version> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <version>${plugin.source.version}</version> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar-no-fork</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <version>${plugin.javadoc.version}</version> + <executions> + <execution> + <id>attach-javadocs</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-gpg-plugin</artifactId> + <version>${plugin.gpg.version}</version> + <executions> + <execution> + <id>sign-artifacts</id> + <phase>verify</phase> + <goals> + <goal>sign</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.sonatype.plugins</groupId> + <artifactId>nexus-staging-maven-plugin</artifactId> + <version>${plugin.staging.version}</version> + <extensions>true</extensions> + <configuration> + <serverId>ossrh</serverId> + <nexusUrl>https://oss.sonatype.org/</nexusUrl> + <autoReleaseAfterClose>true</autoReleaseAfterClose> + </configuration> + </plugin> </plugins> </build>