Created
August 14, 2013 08:10
-
-
Save mystelynx/6228934 to your computer and use it in GitHub Desktop.
なんか妙に苦労したのでMavenでSpockのテストを動かす設定をメモっておく。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>group</groupId> | |
<artifactId>artifact</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | |
</properties> | |
<build> | |
<!-- Mandatory plugins for using Spock --> | |
<plugins> | |
<plugin> | |
<groupId>org.codehaus.gmaven</groupId> | |
<artifactId>gmaven-plugin</artifactId> | |
<version>1.5</version> | |
<configuration> | |
<providerSelection>2.0</providerSelection> | |
</configuration> | |
<executions> | |
<execution> | |
<goals> | |
<goal>compile</goal> | |
<goal>testCompile</goal> | |
</goals> | |
</execution> | |
</executions> | |
<dependencies> | |
<dependency> | |
<groupId>org.codehaus.gmaven.runtime</groupId> | |
<artifactId>gmaven-runtime-2.0</artifactId> | |
<version>1.5</version> | |
<exclusions> | |
<exclusion> | |
<groupId>org.codehaus.groovy</groupId> | |
<artifactId>groovy-all</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>org.codehaus.groovy</groupId> | |
<artifactId>groovy-all</artifactId> | |
<version>2.0.5</version> | |
</dependency> | |
</dependencies> | |
</plugin> | |
<!-- Optional plugins for using Spock --> | |
<!-- Only required if default Surefire configuration is not satisfactory --> | |
<plugin> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>2.6</version> | |
<configuration> | |
<useFile>false</useFile> | |
<includes> | |
<include>**/*Spec.java</include> | |
</includes> | |
</configuration> | |
</plugin> | |
<!-- Only required for spock-example build --> | |
<plugin> | |
<artifactId>maven-deploy-plugin</artifactId> | |
<version>2.5</version> | |
<configuration> | |
<skip>true</skip> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
<dependencies> | |
<dependency> | |
<groupId>org.spockframework</groupId> | |
<artifactId>spock-core</artifactId> | |
<version>0.7-groovy-2.0</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment