Skip to content

Commit 4428f8b

Browse files
prepare pom for first release
1 parent 66b49ff commit 4428f8b

File tree

3 files changed

+81
-2
lines changed

3 files changed

+81
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ See also the list of [contributors](https://github.com/your/project/contributors
6161

6262
## License
6363

64-
This project is licensed under the Apache License Version 2.0 - see the [LICENSE.md](LICENSE.md) file for details
64+
This project is licensed under The Apache Software License, Version 2.0 - see the [LICENSE.md](LICENSE.md) file for details

pom.xml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,21 @@
4242
<!-- allowed values: R7, 1.0, 1.5, 2.0 or none -->
4343
<wtp.version>none</wtp.version>
4444
</properties>
45+
46+
<scm>
47+
<connection>scm:git:[email protected]:pingunaut/wicket-pwnedpasswords-validator.git</connection>
48+
<developerConnection>scm:git:[email protected]:pingunaut/wicket-pwnedpasswords-validator.git</developerConnection>
49+
<url>[email protected]:pingunaut/wicket-pwnedpasswords-validator.git</url>
50+
</scm>
51+
52+
<developers>
53+
<developer>
54+
<id>pingunaut</id>
55+
<name>Martin Spielmann</name>
56+
<email>[email protected]</email>
57+
</developer>
58+
</developers>
59+
4560
<dependencies>
4661
<!-- WICKET DEPENDENCIES -->
4762
<dependency>
@@ -139,6 +154,67 @@
139154
</plugins>
140155
</build>
141156

157+
<profiles>
158+
<profile>
159+
<id>ossrh</id>
160+
<build>
161+
<plugins>
162+
<plugin>
163+
<groupId>org.sonatype.plugins</groupId>
164+
<artifactId>nexus-staging-maven-plugin</artifactId>
165+
<version>1.6.8</version>
166+
<extensions>true</extensions>
167+
<configuration>
168+
<serverId>ossrh</serverId>
169+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
170+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
171+
</configuration>
172+
</plugin>
173+
<plugin>
174+
<groupId>org.apache.maven.plugins</groupId>
175+
<artifactId>maven-source-plugin</artifactId>
176+
<version>3.0.1</version>
177+
<executions>
178+
<execution>
179+
<id>attach-sources</id>
180+
<goals>
181+
<goal>jar-no-fork</goal>
182+
</goals>
183+
</execution>
184+
</executions>
185+
</plugin>
186+
<plugin>
187+
<groupId>org.apache.maven.plugins</groupId>
188+
<artifactId>maven-javadoc-plugin</artifactId>
189+
<version>2.10.4</version>
190+
<executions>
191+
<execution>
192+
<id>attach-javadocs</id>
193+
<goals>
194+
<goal>jar</goal>
195+
</goals>
196+
</execution>
197+
</executions>
198+
</plugin>
199+
<plugin>
200+
<groupId>org.apache.maven.plugins</groupId>
201+
<artifactId>maven-gpg-plugin</artifactId>
202+
<version>1.6</version>
203+
<executions>
204+
<execution>
205+
<id>sign-artifacts</id>
206+
<phase>verify</phase>
207+
<goals>
208+
<goal>sign</goal>
209+
</goals>
210+
</execution>
211+
</executions>
212+
</plugin>
213+
</plugins>
214+
</build>
215+
</profile>
216+
</profiles>
217+
142218
<repositories>
143219
<repository>
144220
<id>Apache Nexus</id>
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
package de.martinspielmann.wicket.pwnedpasswordsvalidator;
22

3+
import org.junit.Assert;
34
import org.junit.Test;
45

56
public class StatusTest {
67

78
@Test
8-
public void of() {
9+
public void testStatusOfUnknownCodeResultsInUnknownApiError() {
10+
Status s = Status.of(234);
11+
Assert.assertEquals(Status.UNKNOWN_API_ERROR, s);
912
}
1013
}

0 commit comments

Comments
 (0)