|
1 |
| -<project xmlns="http://maven.apache.org/POM/4.0.0" |
2 |
| - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
3 | 2 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
4 | 3 | <modelVersion>4.0.0</modelVersion>
|
5 | 4 |
|
6 |
| - <groupId>tdd-tutorial</groupId> |
7 |
| - <artifactId>tetris</artifactId> |
| 5 | + <groupId>net.orfjackal.tdd-tutorial</groupId> |
| 6 | + <artifactId>tdd-tetris-tutorial</artifactId> |
8 | 7 | <version>1.0-SNAPSHOT</version>
|
9 | 8 | <packaging>jar</packaging>
|
10 | 9 |
|
11 |
| - <name>TDD Tetris</name> |
12 |
| - <description>Tutorial for learning TDD by writing a Tetris</description> |
| 10 | + <name>TDD Tetris Tutorial</name> |
| 11 | + <description> |
| 12 | + Tutorial for learning TDD. You make a Tetris game by writing code to pass the test cases. |
| 13 | + </description> |
| 14 | + <url>http://github.com/orfjackal/tdd-tetris-tutorial</url> |
| 15 | + <inceptionYear>2008</inceptionYear> |
13 | 16 |
|
14 | 17 | <dependencies>
|
| 18 | + |
| 19 | + <!-- Testing frameworks --> |
| 20 | + |
15 | 21 | <dependency>
|
16 | 22 | <groupId>junit</groupId>
|
17 | 23 | <artifactId>junit</artifactId>
|
18 | 24 | <version>4.4</version>
|
19 | 25 | <scope>test</scope>
|
20 | 26 | </dependency>
|
21 |
| - |
22 | 27 | <dependency>
|
23 |
| - <groupId>org.jmock</groupId> |
24 |
| - <artifactId>jmock-junit3</artifactId> |
25 |
| - <version>2.4.0</version> |
| 28 | + <groupId>org.mockito</groupId> |
| 29 | + <artifactId>mockito-all</artifactId> |
| 30 | + <version>1.7</version> |
26 | 31 | <scope>test</scope>
|
27 | 32 | </dependency>
|
| 33 | + |
28 | 34 | </dependencies>
|
29 | 35 |
|
30 | 36 | <build>
|
31 | 37 | <plugins>
|
32 | 38 |
|
| 39 | + <!-- Compiler and file encodings --> |
| 40 | + |
33 | 41 | <plugin>
|
34 | 42 | <artifactId>maven-compiler-plugin</artifactId>
|
35 | 43 | <configuration>
|
36 |
| - <source>1.5</source> |
37 |
| - <target>1.5</target> |
| 44 | + <source>1.6</source> |
| 45 | + <target>1.6</target> |
| 46 | + <encoding>UTF-8</encoding> |
38 | 47 | </configuration>
|
39 | 48 | </plugin>
|
40 | 49 |
|
| 50 | + <plugin> |
| 51 | + <artifactId>maven-resources-plugin</artifactId> |
| 52 | + <configuration> |
| 53 | + <encoding>UTF-8</encoding> |
| 54 | + </configuration> |
| 55 | + </plugin> |
| 56 | + |
| 57 | + <!-- Test runner configuration --> |
| 58 | + |
| 59 | + <plugin> |
| 60 | + <artifactId>maven-surefire-plugin</artifactId> |
| 61 | + <configuration> |
| 62 | + <includes> |
| 63 | + <include>**/*Test.java</include> |
| 64 | + </includes> |
| 65 | + <redirectTestOutputToFile>true</redirectTestOutputToFile> |
| 66 | + </configuration> |
| 67 | + </plugin> |
| 68 | + |
| 69 | + <!-- Assembling a distributable file |
| 70 | + (run "mvn clean package" and collect the .zip file from the /target directory) --> |
| 71 | + |
| 72 | + <plugin> |
| 73 | + <artifactId>maven-assembly-plugin</artifactId> |
| 74 | + <inherited>false</inherited> |
| 75 | + <configuration> |
| 76 | + <attach>false</attach> |
| 77 | + <descriptors> |
| 78 | + <descriptor>src/main/assembly/src.xml</descriptor> |
| 79 | + </descriptors> |
| 80 | + </configuration> |
| 81 | + <executions> |
| 82 | + <execution> |
| 83 | + <id>make-assembly</id> |
| 84 | + <phase>package</phase> |
| 85 | + <goals> |
| 86 | + <goal>attached</goal> |
| 87 | + </goals> |
| 88 | + </execution> |
| 89 | + </executions> |
| 90 | + </plugin> |
| 91 | + |
| 92 | + <!-- Add sources to Maven repository when installing/deploying a release --> |
| 93 | + |
41 | 94 | <plugin>
|
42 | 95 | <artifactId>maven-source-plugin</artifactId>
|
43 | 96 | <executions>
|
|
0 commit comments