Skip to content

Commit 2b75c1e

Browse files
committed
添加license头完毕
1 parent 2d8a013 commit 2b75c1e

File tree

71 files changed

+1198
-114
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+1198
-114
lines changed

license.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright © ${project.inceptionYear} ${owner} (${email})
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

pom.xml

Lines changed: 152 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
<jdk.version>1.7</jdk.version>
1313
</properties>
1414

15+
<inceptionYear>2017</inceptionYear>
1516

1617
<!-- projectName,description,url等。-->
1718
<name>${project.groupId}:${project.artifactId}</name>
1819
<description>The plug-in of Jmockdata what through random algorithm mock java data</description>
1920
<url>https://github.com/jsonzou/jmockdata</url>
2021

21-
2222
<!-- license 信息-->
2323
<licenses>
2424
<license>
@@ -27,7 +27,6 @@
2727
</license>
2828
</licenses>
2929

30-
3130
<!-- 开发者信息-->
3231
<developers>
3332
<developer>
@@ -40,12 +39,8 @@
4039

4140
<!-- SCM 信息-->
4241
<scm>
43-
<connection>
44-
scm:git:https://github.com/jsonzou/jmockdata.git
45-
</connection>
46-
<developerConnection>
47-
scm:git:https://github.com/jsonzou/jmockdata.git
48-
</developerConnection>
42+
<connection>scm:git:https://github.com/jsonzou/jmockdata.git</connection>
43+
<developerConnection>scm:git:https://github.com/jsonzou/jmockdata.git</developerConnection>
4944
<url>https://github.com/jsonzou/jmockdata</url>
5045
<tag>jmockdata</tag>
5146
</scm>
@@ -64,22 +59,167 @@
6459

6560

6661
<dependencies>
67-
6862
<dependency>
6963
<groupId>com.alibaba</groupId>
7064
<artifactId>fastjson</artifactId>
7165
<version>1.2.17</version>
7266
<scope>test</scope>
7367
</dependency>
74-
75-
7668
<dependency>
7769
<groupId>junit</groupId>
7870
<artifactId>junit</artifactId>
7971
<version>4.12</version>
8072
<scope>test</scope>
8173
</dependency>
8274
</dependencies>
75+
<build>
76+
<pluginManagement>
77+
<plugins>
78+
<!--编译-->
79+
<plugin>
80+
<groupId>org.apache.maven.plugins</groupId>
81+
<artifactId>maven-compiler-plugin</artifactId>
82+
<version>3.6.1</version>
83+
<configuration>
84+
<source>1.7</source>
85+
<target>1.7</target>
86+
<testSource>1.7</testSource>
87+
<testTarget>1.7</testTarget>
88+
<encoding>UTF-8</encoding>
89+
<optimize>true</optimize>
90+
<!-- Slightly faster builds, see https://issues.apache.org/jira/browse/MCOMPILER-209 -->
91+
<useIncrementalCompilation>false</useIncrementalCompilation>
92+
</configuration>
93+
</plugin>
94+
<!--本地打包-->
95+
<plugin>
96+
<groupId>org.apache.maven.plugins</groupId>
97+
<artifactId>maven-install-plugin</artifactId>
98+
<version>2.5.2</version>
99+
</plugin>
100+
<!--发布-->
101+
<plugin>
102+
<groupId>org.apache.maven.plugins</groupId>
103+
<artifactId>maven-deploy-plugin</artifactId>
104+
<version>2.8.2</version>
105+
</plugin>
106+
<!--清除-->
107+
<plugin>
108+
<groupId>org.apache.maven.plugins</groupId>
109+
<artifactId>maven-clean-plugin</artifactId>
110+
<version>3.0.0</version>
111+
</plugin>
112+
<!--测试-->
113+
<plugin>
114+
<groupId>org.apache.maven.plugins</groupId>
115+
<artifactId>maven-surefire-plugin</artifactId>
116+
<version>2.19.1</version>
117+
<configuration>
118+
<forkMode>once</forkMode>
119+
<argLine>-Dfile.encoding=UTF-8</argLine>
120+
</configuration>
121+
</plugin>
122+
<!-- Source -->
123+
<plugin>
124+
<groupId>org.apache.maven.plugins</groupId>
125+
<artifactId>maven-source-plugin</artifactId>
126+
<version>2.2.1</version>
127+
<executions>
128+
<execution>
129+
<phase>package</phase>
130+
<goals>
131+
<goal>jar-no-fork</goal>
132+
</goals>
133+
</execution>
134+
</executions>
135+
</plugin>
136+
<!-- Javadoc -->
137+
<plugin>
138+
<groupId>org.apache.maven.plugins</groupId>
139+
<artifactId>maven-javadoc-plugin</artifactId>
140+
<version>2.10.4</version>
141+
<configuration>
142+
<aggregate>true</aggregate>
143+
</configuration>
144+
<executions>
145+
<execution>
146+
<id>attach-javadocs</id>
147+
<goals>
148+
<goal>jar</goal>
149+
</goals>
150+
</execution>
151+
</executions>
152+
</plugin>
153+
<!-- GPG -->
154+
<plugin>
155+
<groupId>org.apache.maven.plugins</groupId>
156+
<artifactId>maven-gpg-plugin</artifactId>
157+
<version>1.6</version>
158+
<executions>
159+
<execution>
160+
<phase>verify</phase>
161+
<goals>
162+
<goal>sign</goal>
163+
</goals>
164+
</execution>
165+
</executions>
166+
</plugin>
167+
<!--license插件,用于给每个文件生成头注释 https://github.com/mycila/license-maven-plugin-->
168+
<!--mvn license:format-->
169+
<plugin>
170+
<groupId>com.mycila</groupId>
171+
<artifactId>license-maven-plugin</artifactId>
172+
<version>3.0</version>
173+
<configuration>
174+
<header>license.txt</header>
175+
<properties>
176+
<owner>jsonzou</owner>
177+
<email>[email protected]</email>
178+
</properties>
179+
<mapping>
180+
<xml.vm>XML_STYLE</xml.vm>
181+
</mapping>
182+
<excludes>
183+
<exclude>pom.xml</exclude>
184+
<exclude>.git**</exclude>
185+
<exclude>LICENSE</exclude>
186+
<exclude>README</exclude>
187+
<exclude>src/test/resources/**</exclude>
188+
<exclude>src/main/resources/**</exclude>
189+
</excludes>
190+
</configuration>
191+
<executions>
192+
<execution>
193+
<phase>validate</phase>
194+
<goals>
195+
<goal>format</goal>
196+
</goals>
197+
</execution>
198+
</executions>
199+
<dependencies>
200+
<dependency>
201+
<groupId>com.mycila</groupId>
202+
<artifactId>license-maven-plugin-git</artifactId>
203+
<version>3.0</version>
204+
</dependency>
205+
</dependencies>
206+
</plugin>
207+
<!--覆盖率插件 https://github.com/trautonen/coveralls-maven-plugin-->
208+
<plugin>
209+
<groupId>org.eluder.coveralls</groupId>
210+
<artifactId>coveralls-maven-plugin</artifactId>
211+
<version>4.3.0</version>
212+
</plugin>
213+
</plugins>
214+
</pluginManagement>
215+
216+
<plugins>
217+
<plugin>
218+
<groupId>com.mycila</groupId>
219+
<artifactId>license-maven-plugin</artifactId>
220+
</plugin>
221+
</plugins>
222+
</build>
83223

84224
<profiles>
85225
<profile>
@@ -88,62 +228,23 @@
88228
<plugins>
89229
<!-- jdk -->
90230
<plugin>
231+
<groupId>org.apache.maven.plugins</groupId>
91232
<artifactId>maven-compiler-plugin</artifactId>
92-
<version>3.5.1</version>
93-
<configuration>
94-
<source>${jdk.version}</source>
95-
<target>${jdk.version}</target>
96-
<encoding>UTF-8</encoding>
97-
</configuration>
98233
</plugin>
99-
100234
<!-- Source -->
101235
<plugin>
102236
<groupId>org.apache.maven.plugins</groupId>
103237
<artifactId>maven-source-plugin</artifactId>
104-
<version>2.2.1</version>
105-
<configuration>
106-
107-
</configuration>
108-
<executions>
109-
<execution>
110-
<phase>package</phase>
111-
<goals>
112-
<goal>jar-no-fork</goal>
113-
</goals>
114-
</execution>
115-
</executions>
116238
</plugin>
117239
<!-- Javadoc -->
118240
<plugin>
119241
<groupId>org.apache.maven.plugins</groupId>
120242
<artifactId>maven-javadoc-plugin</artifactId>
121-
<version>2.10.2</version>
122-
<configuration>
123-
<aggregate>true</aggregate>
124-
</configuration>
125-
<executions>
126-
<execution>
127-
<id>attach-javadocs</id>
128-
<goals>
129-
<goal>jar</goal>
130-
</goals>
131-
</execution>
132-
</executions>
133243
</plugin>
134244
<!-- GPG -->
135245
<plugin>
136246
<groupId>org.apache.maven.plugins</groupId>
137247
<artifactId>maven-gpg-plugin</artifactId>
138-
<version>1.5</version>
139-
<executions>
140-
<execution>
141-
<phase>verify</phase>
142-
<goals>
143-
<goal>sign</goal>
144-
</goals>
145-
</execution>
146-
</executions>
147248
</plugin>
148249
</plugins>
149250
</build>

src/main/java/com/github/jsonzou/jmockdata/JMockData.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/**
2+
* Copyright © 2017 jsonzou ([email protected])
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.github.jsonzou.jmockdata;
217

318
import com.github.jsonzou.jmockdata.mockdata.*;

src/main/java/com/github/jsonzou/jmockdata/mockdata/JMockDataManager.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
1+
/**
2+
* Copyright © 2017 jsonzou ([email protected])
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
216
package com.github.jsonzou.jmockdata.mockdata;
317

418
import com.github.jsonzou.jmockdata.mockdata.mocks.*;

src/main/java/com/github/jsonzou/jmockdata/mockdata/JmockDataContext.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
1+
/**
2+
* Copyright © 2017 jsonzou ([email protected])
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
216
package com.github.jsonzou.jmockdata.mockdata;
317

418
import com.github.jsonzou.jmockdata.utils.ReflectionUtil;

src/main/java/com/github/jsonzou/jmockdata/mockdata/JmockDataInterceptor.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
1+
/**
2+
* Copyright © 2017 jsonzou ([email protected])
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
216
package com.github.jsonzou.jmockdata.mockdata;
317

418
/**

src/main/java/com/github/jsonzou/jmockdata/mockdata/JmockDataTemplate.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
1+
/**
2+
* Copyright © 2017 jsonzou ([email protected])
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
216
package com.github.jsonzou.jmockdata.mockdata;
317

418
import java.math.BigDecimal;

0 commit comments

Comments
 (0)