Skip to content

Commit 75e3202

Browse files
committed
Revise POM for publication to Maven Central
1 parent cc8cfda commit 75e3202

File tree

2 files changed

+86
-27
lines changed

2 files changed

+86
-27
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.nordstrom.tools/junit-foundation/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.nordstrom.tools/junit-foundation)
2+
13
# INTRODUCTION
24

35
**JUnit Foundation** is a lightweight collection of JUnit watchers, interfaces, and static utility classes that supplement and augment the functionality provided by the JUnit API. The facilities provided by **JUnit Foundation** include method invocation hooks and test artifact capture.
@@ -320,4 +322,4 @@ public class ExampleTest implements ArtifactParams {
320322
}
321323
```
322324

323-
This example demonstrates two techniques for attaching artifact collectors to test classes. Either technique will activate basic artifact capture functionality. Of course, the first option is required to activate extended behavior implemented in a type-specific subclass of **ArtifactCapture**.
325+
This example demonstrates two techniques for attaching artifact collectors to test classes. Either technique will activate basic artifact capture functionality. Of course, the first option is required to activate extended behavior implemented in a type-specific subclass of **ArtifactCapture**.

pom.xml

Lines changed: 83 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,75 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
33
<modelVersion>4.0.0</modelVersion>
4-
5-
<groupId>com.nordstrom.test-automation.tools</groupId>
4+
<groupId>com.nordstrom.tools</groupId>
65
<artifactId>junit-foundation</artifactId>
6+
<version>3.1.1-SNAPSHOT</version>
77
<packaging>jar</packaging>
8-
<version>1.0-SNAPSHOT</version>
98

109
<name>JUnit Foundation</name>
1110
<description>This is the foundation framework for JUnit automation</description>
12-
<url>https://git.nordstrom.net/projects/MFATT/repos/junit-foundation/browse</url>
11+
<url>https://github.com/Nordstrom/JUnit-Foundation</url>
12+
13+
<licenses>
14+
<license>
15+
<name>The Apache License, Version 2.0</name>
16+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
17+
</license>
18+
</licenses>
19+
20+
<developers>
21+
<developer>
22+
<name>Scott Babcock</name>
23+
<email>[email protected]</email>
24+
<organization>Nordstrom</organization>
25+
<organizationUrl>https://shop.nordstrom.com</organizationUrl>
26+
</developer>
27+
</developers>
1328

1429
<properties>
1530
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1631
<lifecycle-mapping.version>1.0.0</lifecycle-mapping.version>
17-
<nordstrom-common.version>1.3.0.0</nordstrom-common.version>
32+
<java-utils.version>1.3.2</java-utils.version>
1833
<surefire-plugin.version>2.19.1</surefire-plugin.version>
1934
<compiler-plugin.version>3.6.0</compiler-plugin.version>
2035
<source-plugin.version>3.0.1</source-plugin.version>
2136
<javadoc-plugin.version>2.10.4</javadoc-plugin.version>
22-
<deploy-plugin.version>2.8.2</deploy-plugin.version>
23-
<settings.version>0.2.0.0</settings.version>
37+
<settings.version>2.0.7</settings.version>
2438
<junit.version>4.12</junit.version>
2539
<bytebuddy.version>1.7.5</bytebuddy.version>
2640
<logback.version>1.2.2</logback.version>
41+
<gpg-plugin.version>1.6</gpg-plugin.version>
42+
<staging-plugin.version>1.6.7</staging-plugin.version>
43+
<release-plugin.version>2.5.3</release-plugin.version>
2744
</properties>
2845

46+
<scm>
47+
<connection>scm:git:https://github.com/Nordstrom/JUnit-Foundation.git</connection>
48+
<developerConnection>scm:git:https://github.com/Nordstrom/JUnit-Foundation.git</developerConnection>
49+
<url>https://github.com/Nordstrom/JUnit-Foundation/tree/master</url>
50+
<tag>HEAD</tag>
51+
</scm>
52+
2953
<distributionManagement>
54+
<snapshotRepository>
55+
<id>ossrh</id>
56+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
57+
</snapshotRepository>
3058
<repository>
31-
<id>releases</id>
32-
<url>https://mvnrepo.nordstrom.net/nexus/content/repositories/releases</url>
59+
<id>ossrh</id>
60+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
3361
</repository>
3462
</distributionManagement>
35-
63+
3664
<dependencyManagement>
3765
<dependencies>
3866
<dependency>
39-
<groupId>com.nordstrom.test-automation.tools</groupId>
40-
<artifactId>common</artifactId>
41-
<version>${nordstrom-common.version}</version>
67+
<groupId>com.nordstrom.tools</groupId>
68+
<artifactId>java-utils</artifactId>
69+
<version>${java-utils.version}</version>
4270
</dependency>
4371
<dependency>
44-
<groupId>com.nordstrom.test-automation.tools</groupId>
72+
<groupId>com.nordstrom.tools</groupId>
4573
<artifactId>settings</artifactId>
4674
<version>${settings.version}</version>
4775
</dependency>
@@ -65,11 +93,11 @@
6593

6694
<dependencies>
6795
<dependency>
68-
<groupId>com.nordstrom.test-automation.tools</groupId>
69-
<artifactId>common</artifactId>
96+
<groupId>com.nordstrom.tools</groupId>
97+
<artifactId>java-utils</artifactId>
7098
</dependency>
7199
<dependency>
72-
<groupId>com.nordstrom.test-automation.tools</groupId>
100+
<groupId>com.nordstrom.tools</groupId>
73101
<artifactId>settings</artifactId>
74102
</dependency>
75103
<dependency>
@@ -144,8 +172,18 @@
144172
</plugin>
145173
<plugin>
146174
<groupId>org.apache.maven.plugins</groupId>
147-
<artifactId>maven-deploy-plugin</artifactId>
148-
<version>${deploy-plugin.version}</version>
175+
<artifactId>maven-gpg-plugin</artifactId>
176+
<version>${gpg-plugin.version}</version>
177+
</plugin>
178+
<plugin>
179+
<groupId>org.sonatype.plugins</groupId>
180+
<artifactId>nexus-staging-maven-plugin</artifactId>
181+
<version>${staging-plugin.version}</version>
182+
</plugin>
183+
<plugin>
184+
<groupId>org.apache.maven.plugins</groupId>
185+
<artifactId>maven-release-plugin</artifactId>
186+
<version>${release-plugin.version}</version>
149187
</plugin>
150188
</plugins>
151189
</pluginManagement>
@@ -199,22 +237,41 @@
199237
</plugin>
200238
<plugin>
201239
<groupId>org.apache.maven.plugins</groupId>
202-
<artifactId>maven-deploy-plugin</artifactId>
240+
<artifactId>maven-gpg-plugin</artifactId>
203241
<executions>
204242
<execution>
205-
<id>deploy-file</id>
206-
<phase>deploy</phase>
243+
<id>sign-artifacts</id>
244+
<phase>verify</phase>
207245
<goals>
208-
<goal>deploy-file</goal>
246+
<goal>sign</goal>
209247
</goals>
210248
<configuration>
211-
<file>${project.build.directory}${file.separator}${project.build.finalName}.jar</file>
212-
<repositoryId>releases</repositoryId>
213-
<url>https://mvnrepo.nordstrom.net/nexus/content/repositories/releases</url>
249+
<keyname>${gpg.keyname}</keyname>
250+
<passphraseServerId>${gpg.keyname}</passphraseServerId>
214251
</configuration>
215252
</execution>
216253
</executions>
217254
</plugin>
255+
<plugin>
256+
<groupId>org.sonatype.plugins</groupId>
257+
<artifactId>nexus-staging-maven-plugin</artifactId>
258+
<extensions>true</extensions>
259+
<configuration>
260+
<serverId>ossrh</serverId>
261+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
262+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
263+
</configuration>
264+
</plugin>
265+
<plugin>
266+
<groupId>org.apache.maven.plugins</groupId>
267+
<artifactId>maven-release-plugin</artifactId>
268+
<configuration>
269+
<autoVersionSubmodules>true</autoVersionSubmodules>
270+
<useReleaseProfile>false</useReleaseProfile>
271+
<releaseProfiles>release</releaseProfiles>
272+
<goals>deploy</goals>
273+
</configuration>
274+
</plugin>
218275
</plugins>
219276
</build>
220277
</project>

0 commit comments

Comments
 (0)