You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
137 lines
4.5 KiB
137 lines
4.5 KiB
<?xml version="1.0"?>
|
|
<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>org.spockframework</groupId>
|
|
<artifactId>spock-example</artifactId>
|
|
<version>1.0-SNAPSHOT</version>
|
|
<packaging>jar</packaging>
|
|
<name>Spock Framework - Example Project</name>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
</properties>
|
|
|
|
<build>
|
|
<plugins>
|
|
<!-- Mandatory plugins for using Spock -->
|
|
<plugin>
|
|
<!-- The gmavenplus plugin is used to compile Groovy code. To learn more about this plugin,
|
|
visit https://github.com/groovy/GMavenPlus/wiki -->
|
|
<groupId>org.codehaus.gmavenplus</groupId>
|
|
<artifactId>gmavenplus-plugin</artifactId>
|
|
<version>1.6</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
<goal>compileTests</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<!-- Optional plugins for using Spock -->
|
|
<!-- Only required if names of spec classes don't match default Surefire patterns (`*Test` etc.) -->
|
|
<plugin>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>3.0.0-M4</version>
|
|
<configuration>
|
|
<useFile>false</useFile>
|
|
<includes>
|
|
<include>**/*Test.java</include>
|
|
<include>**/*Spec.java</include>
|
|
</includes>
|
|
</configuration>
|
|
</plugin>
|
|
<!-- Only required for spock-example build -->
|
|
<plugin>
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
<version>2.8.2</version>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.spockframework</groupId>
|
|
<artifactId>spock-bom</artifactId>
|
|
<version>2.0-M1-groovy-2.5</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<dependencies>
|
|
<!-- Mandatory dependencies for using Spock -->
|
|
<dependency>
|
|
<groupId>org.spockframework</groupId>
|
|
<artifactId>spock-core</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.spockframework</groupId>
|
|
<artifactId>spock-junit4</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<!-- Optional dependencies for using Spock -->
|
|
<dependency> <!-- use a specific Groovy version rather than the one specified by spock-core -->
|
|
<groupId>org.codehaus.groovy</groupId>
|
|
<artifactId>groovy</artifactId>
|
|
<version>2.5.8</version>
|
|
</dependency>
|
|
<dependency> <!-- enables mocking of classes (in addition to interfaces) -->
|
|
<groupId>net.bytebuddy</groupId>
|
|
<artifactId>byte-buddy</artifactId>
|
|
<version>1.9.3</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency> <!-- enables mocking of classes without default constructor (together with CGLIB) -->
|
|
<groupId>org.objenesis</groupId>
|
|
<artifactId>objenesis</artifactId>
|
|
<version>2.6</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency> <!-- only required if Hamcrest matchers are used -->
|
|
<groupId>org.hamcrest</groupId>
|
|
<artifactId>hamcrest-core</artifactId>
|
|
<version>1.3</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<!-- Dependencies used by examples in this project (not required for using Spock) -->
|
|
<dependency>
|
|
<groupId>com.h2database</groupId>
|
|
<artifactId>h2</artifactId>
|
|
<version>1.4.197</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<repositories>
|
|
<!-- Only required if a snapshot version of Spock is used -->
|
|
<repository>
|
|
<id>spock-snapshots</id>
|
|
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
|
|
<snapshots>
|
|
<enabled>true</enabled>
|
|
</snapshots>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<!-- Only required in spock-example build -->
|
|
<distributionManagement>
|
|
<repository>
|
|
<id>foo</id>
|
|
<url>file:///fake.repository.to.make.maven.happy</url>
|
|
</repository>
|
|
<snapshotRepository>
|
|
<id>bar</id>
|
|
<url>file:///fake.repository.to.make.maven.happy</url>
|
|
</snapshotRepository>
|
|
</distributionManagement>
|
|
</project>
|