Created
June 21, 2019 18:17
-
-
Save tnguyen14/0ef1ac6ee2adc6f362108e5160f15c4a to your computer and use it in GitHub Desktop.
pom.xml for Jenkins 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
<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>com</groupId> | |
<artifactId>jenkins-pipeline-libraries</artifactId> | |
<version>0.0.0</version> <!-- unused --> | |
<properties> | |
<groovy.core.version>2.4.11</groovy.core.version> | |
<groovy.spock.version>1.1-groovy-2.4</groovy.spock.version> | |
<groovy.gmaven.pluginVersion>1.6.1</groovy.gmaven.pluginVersion> | |
<jenkins.version>2.102</jenkins.version> | |
<jenkins.servlet.version>3.1.0</jenkins.servlet.version> | |
<jenkins.symbol.version>1.10</jenkins.symbol.version> | |
<jenkins.workflow.cps.version>2.36</jenkins.workflow.cps.version> | |
<jenkins.workflow.step.version>2.10</jenkins.workflow.step.version> | |
<jenkins-spock.version>2.0.0</jenkins-spock.version> | |
<junit.version>4.12</junit.version> | |
<logback.configration>logback-test.xml</logback.configration> | |
<logdir>${project.build.directory}/log</logdir> | |
<test.loglevel>ERROR</test.loglevel> | |
<log.logback.version>1.2.3</log.logback.version> | |
<log.slf4j.version>1.7.25</log.slf4j.version> | |
<surefire.pluginVersion>2.22.0</surefire.pluginVersion> | |
<slack.version>2.21</slack.version> | |
<mailer.version>1.23</mailer.version> | |
</properties> | |
<dependencies> | |
<dependency> | |
<groupId>com.homeaway.devtools.jenkins</groupId> | |
<artifactId>jenkins-spock</artifactId> | |
<version>${jenkins-spock.version}</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>ch.qos.logback</groupId> | |
<artifactId>logback-core</artifactId> | |
<version>${log.logback.version}</version> | |
<scope>runtime</scope> | |
</dependency> | |
<dependency> | |
<groupId>ch.qos.logback</groupId> | |
<artifactId>logback-classic</artifactId> | |
<version>${log.logback.version}</version> | |
<scope>runtime</scope> | |
</dependency> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>${junit.version}</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>javax.servlet</groupId> | |
<artifactId>javax.servlet-api</artifactId> | |
<version>${jenkins.servlet.version}</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.jenkins-ci.main</groupId> | |
<artifactId>jenkins-core</artifactId> | |
<version>${jenkins.version}</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.jenkins-ci.plugins.workflow</groupId> | |
<artifactId>workflow-step-api</artifactId> | |
<version>${jenkins.workflow.step.version}</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.jenkins-ci.plugins.workflow</groupId> | |
<artifactId>workflow-cps</artifactId> | |
<version>${jenkins.workflow.cps.version}</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.jenkins-ci</groupId> | |
<artifactId>symbol-annotation</artifactId> | |
<version>${jenkins.symbol.version}</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.codehaus.groovy</groupId> | |
<artifactId>groovy-all</artifactId> | |
<version>${groovy.core.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.jenkins-ci.plugins</groupId> | |
<artifactId>slack</artifactId> | |
<version>${slack.version}</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.jenkins-ci.plugins</groupId> | |
<artifactId>mailer</artifactId> | |
<version>${mailer.version}</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<pluginManagement> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>${surefire.pluginVersion}</version> | |
<executions> | |
<execution> | |
<id>default-test</id> | |
<goals> | |
<goal>test</goal> | |
</goals> | |
<configuration> | |
<forkCount>1</forkCount> | |
<testSourceDirectory>src/test/groovy</testSourceDirectory> | |
<includes> | |
<include>**/*Spec</include> | |
</includes> | |
<useManifestOnlyJar>false</useManifestOnlyJar> | |
<systemPropertyVariables> | |
<root.loglevel>${test.loglevel}</root.loglevel> | |
<root.appender>Stdout</root.appender> | |
<test.loglevel>${test.loglevel}</test.loglevel> | |
<logdir>${logdir}</logdir> | |
</systemPropertyVariables> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.codehaus.gmavenplus</groupId> | |
<artifactId>gmavenplus-plugin</artifactId> | |
<version>${groovy.gmaven.pluginVersion}</version> | |
<executions> | |
<execution> | |
<id>groovy</id> | |
<goals> | |
<goal>addSources</goal> | |
<goal>addTestSources</goal> | |
<goal>generateStubs</goal> | |
<goal>generateTestStubs</goal> | |
<goal>compile</goal> | |
<goal>compileTests</goal> | |
<goal>removeStubs</goal> | |
<goal>removeTestStubs</goal> | |
</goals> | |
<configuration> | |
<sources> | |
<source> | |
<directory>src</directory> | |
<includes> | |
<include>**/*.groovy</include> | |
</includes> | |
</source> | |
</sources> | |
<testSources> | |
<testSource> | |
<directory>test</directory> | |
<includes> | |
<include>**/*.groovy</include> | |
</includes> | |
</testSource> | |
</testSources> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</pluginManagement> | |
<plugins> | |
<plugin> | |
<groupId>org.codehaus.gmavenplus</groupId> | |
<artifactId>gmavenplus-plugin</artifactId> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
</plugin> | |
</plugins> | |
<testResources> | |
<testResource> | |
<includes> | |
<include>vars/**/*.groovy</include> | |
</includes> | |
<directory>${project.basedir}</directory> | |
</testResource> | |
<testResource> | |
<directory>test/resources</directory> | |
</testResource> | |
<testResource> | |
<directory>resources</directory> | |
</testResource> | |
</testResources> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment