Last active
March 23, 2022 04:25
-
-
Save werne2j/95f9d85ce0672e939a195a1c37be7c49 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.example</groupId> | |
<artifactId>jenkins-shared-library</artifactId> | |
<packaging>jar</packaging> | |
<version>1.0.0</version> | |
<description>Testing a Pipeline Shared Library with Spock</description> | |
<repositories> | |
<repository> | |
<id>jenkins-releases</id> | |
<name>Jenkins Releases</name> | |
<url>http://repo.jenkins-ci.org/releases</url> | |
</repository> | |
</repositories> | |
<properties> | |
<groovy.core.version>2.4.11</groovy.core.version> | |
<groovy.gmaven.pluginVersion>1.6.1</groovy.gmaven.pluginVersion> | |
<google.guava.version>20.0</google.guava.version> | |
<jenkins-spock.version>2.0.0</jenkins-spock.version> | |
<jenkins.version>2.102</jenkins.version> | |
<jenkins.servlet.version>3.1.0</jenkins.servlet.version> | |
<jenkins.workflow.cps.version>2.36</jenkins.workflow.cps.version> | |
<jenkins.workflow.basic.steps.version>2.6</jenkins.workflow.basic.steps.version> | |
<junit.version>4.12</junit.version> | |
<junit.plugin.version>1.24</junit.plugin.version> | |
<surefire.pluginVersion>2.22.0</surefire.pluginVersion> | |
<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> | |
</properties> | |
<dependencyManagement> | |
<dependencies> | |
<!-- Transitive Dependencies that need Managing --> | |
<dependency> | |
<groupId>com.google.guava</groupId> | |
<artifactId>guava</artifactId> | |
<version>${google.guava.version}</version> | |
</dependency> | |
</dependencies> | |
</dependencyManagement> | |
<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>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-basic-steps</artifactId> | |
<version>${jenkins.workflow.basic.steps.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>javax.servlet</groupId> | |
<artifactId>javax.servlet-api</artifactId> | |
<version>${jenkins.servlet.version}</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.jenkins-ci.plugins</groupId> | |
<artifactId>junit</artifactId> | |
<version>${junit.plugin.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.codehaus.groovy</groupId> | |
<artifactId>groovy-all</artifactId> | |
<version>${groovy.core.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.slf4j</groupId> | |
<artifactId>jcl-over-slf4j</artifactId> | |
<version>${log.slf4j.version}</version> | |
<scope>runtime</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.slf4j</groupId> | |
<artifactId>log4j-over-slf4j</artifactId> | |
<version>${log.slf4j.version}</version> | |
<scope>runtime</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> | |
<includes> | |
<include>${test.pattern}</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> | |
<configScript>config.groovy</configScript> | |
<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