|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | + <parent> |
| 6 | + <artifactId>wechaty-parent</artifactId> |
| 7 | + <groupId>io.github.wechaty</groupId> |
| 8 | + <version>0.1.1-SNAPSHOT</version> |
| 9 | + </parent> |
| 10 | + <modelVersion>4.0.0</modelVersion> |
| 11 | + |
| 12 | + <artifactId>wechaty-puppet-mock</artifactId> |
| 13 | + |
| 14 | + <dependencies> |
| 15 | + <dependency> |
| 16 | + <groupId>org.jetbrains.kotlin</groupId> |
| 17 | + <artifactId>kotlin-stdlib</artifactId> |
| 18 | + </dependency> |
| 19 | + <dependency> |
| 20 | + <groupId>io.github.wechaty</groupId> |
| 21 | + <artifactId>wechaty-puppet</artifactId> |
| 22 | + <version>${project.version}</version> |
| 23 | + </dependency> |
| 24 | + |
| 25 | +<!-- <dependency>--> |
| 26 | +<!-- <groupId>org.apache.logging.log4j</groupId>--> |
| 27 | +<!-- <artifactId>log4j-api</artifactId>--> |
| 28 | +<!-- </dependency>--> |
| 29 | +<!-- <dependency>--> |
| 30 | +<!-- <groupId>org.apache.logging.log4j</groupId>--> |
| 31 | +<!-- <artifactId>log4j-core</artifactId>--> |
| 32 | +<!-- </dependency>--> |
| 33 | +<!-- <dependency>--> |
| 34 | +<!-- <groupId>org.apache.logging.log4j</groupId>--> |
| 35 | +<!-- <artifactId>log4j-slf4j-impl</artifactId>--> |
| 36 | +<!-- </dependency>--> |
| 37 | +<!-- <dependency>--> |
| 38 | +<!-- <groupId>org.slf4j</groupId>--> |
| 39 | +<!-- <artifactId>slf4j-api</artifactId>--> |
| 40 | +<!-- </dependency>--> |
| 41 | + |
| 42 | + <dependency> |
| 43 | + <groupId>org.mockito</groupId> |
| 44 | + <artifactId>mockito-core</artifactId> |
| 45 | + <version>3.3.3</version> |
| 46 | + </dependency> |
| 47 | + <dependency> |
| 48 | + <groupId>junit</groupId> |
| 49 | + <artifactId>junit</artifactId> |
| 50 | + </dependency> |
| 51 | + </dependencies> |
| 52 | + |
| 53 | + <build> |
| 54 | + <!-- <sourceDirectory>src/main/kotlin</sourceDirectory>--> |
| 55 | + <plugins> |
| 56 | + <plugin> |
| 57 | + <groupId>org.jetbrains.kotlin</groupId> |
| 58 | + <artifactId>kotlin-maven-plugin</artifactId> |
| 59 | + <version>${kotlin.version}</version> |
| 60 | + <executions> |
| 61 | + <execution> |
| 62 | + <id>compile</id> |
| 63 | + <goals> |
| 64 | + <goal>compile</goal> |
| 65 | + </goals> |
| 66 | + <configuration> |
| 67 | + <sourceDirs> |
| 68 | + <sourceDir>${project.basedir}/src/main/kotlin</sourceDir> |
| 69 | + <sourceDir>src/main/kotlin</sourceDir> |
| 70 | + </sourceDirs> |
| 71 | + </configuration> |
| 72 | + </execution> |
| 73 | + <execution> |
| 74 | + <id>test-compile</id> |
| 75 | + <goals> |
| 76 | + <goal>test-compile</goal> |
| 77 | + </goals> |
| 78 | + <configuration> |
| 79 | + <sourceDirs> |
| 80 | + <sourceDir>${project.basedir}/src/test/kotlin</sourceDir> |
| 81 | + <sourceDir>${project.basedir}/src/test/java</sourceDir> |
| 82 | + </sourceDirs> |
| 83 | + </configuration> |
| 84 | + </execution> |
| 85 | + </executions> |
| 86 | + </plugin> |
| 87 | + <plugin> |
| 88 | + <groupId>org.apache.maven.plugins</groupId> |
| 89 | + <artifactId>maven-compiler-plugin</artifactId> |
| 90 | + <version>3.6.1</version> |
| 91 | + <configuration> |
| 92 | + <source>1.8</source> |
| 93 | + <target>1.8</target> |
| 94 | + </configuration> |
| 95 | + <executions> |
| 96 | + <!-- 替换会被 maven 特别处理的 default-compile --> |
| 97 | + <execution> |
| 98 | + <id>default-compile</id> |
| 99 | + <phase>none</phase> |
| 100 | + </execution> |
| 101 | + <!-- 替换会被 maven 特别处理的 default-testCompile --> |
| 102 | + <execution> |
| 103 | + <id>default-testCompile</id> |
| 104 | + <phase>none</phase> |
| 105 | + </execution> |
| 106 | + <execution> |
| 107 | + <id>java-compile</id> |
| 108 | + <phase>compile</phase> |
| 109 | + <goals> |
| 110 | + <goal>compile</goal> |
| 111 | + </goals> |
| 112 | + </execution> |
| 113 | + <execution> |
| 114 | + <id>java-test-compile</id> |
| 115 | + <phase>test-compile</phase> |
| 116 | + <goals> |
| 117 | + <goal>testCompile</goal> |
| 118 | + </goals> |
| 119 | + </execution> |
| 120 | + </executions> |
| 121 | + </plugin> |
| 122 | + <plugin> |
| 123 | + <groupId>org.apache.maven.plugins</groupId> |
| 124 | + <artifactId>maven-source-plugin</artifactId> |
| 125 | + <version>3.2.1</version> |
| 126 | + <executions> |
| 127 | + <execution> |
| 128 | + <phase>package</phase> |
| 129 | + <goals> |
| 130 | + <goal>jar-no-fork</goal> |
| 131 | + </goals> |
| 132 | + </execution> |
| 133 | + </executions> |
| 134 | + </plugin> |
| 135 | + <!-- Javadoc --> |
| 136 | + <plugin> |
| 137 | + <groupId>org.jetbrains.dokka</groupId> |
| 138 | + <artifactId>dokka-maven-plugin</artifactId> |
| 139 | + <version>${dokka.version}</version> |
| 140 | + <executions> |
| 141 | + <execution> |
| 142 | + <phase>pre-site</phase> |
| 143 | + <goals> |
| 144 | + <goal>javadocJar</goal> |
| 145 | + </goals> |
| 146 | + </execution> |
| 147 | + </executions> |
| 148 | + <configuration> |
| 149 | + <sourceDirectories> |
| 150 | + <dir>src/main/kotlin</dir> |
| 151 | + </sourceDirectories> |
| 152 | + </configuration> |
| 153 | + </plugin> |
| 154 | + <plugin> |
| 155 | + <groupId>org.apache.maven.plugins</groupId> |
| 156 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 157 | + <version>3.2.0</version> |
| 158 | + <executions> |
| 159 | + <execution> |
| 160 | + <phase>package</phase> |
| 161 | + <goals> |
| 162 | + <goal>jar</goal> |
| 163 | + </goals> |
| 164 | + </execution> |
| 165 | + </executions> |
| 166 | + </plugin> |
| 167 | + </plugins> |
| 168 | + </build> |
| 169 | + |
| 170 | + <pluginRepositories> |
| 171 | + <pluginRepository> |
| 172 | + <id>jcenter</id> |
| 173 | + <name>JCenter</name> |
| 174 | + <url>https://jcenter.bintray.com/</url> |
| 175 | + </pluginRepository> |
| 176 | + </pluginRepositories> |
| 177 | + |
| 178 | + |
| 179 | +</project> |
0 commit comments