Skip to content

Commit 15e9ad2

Browse files
authored
Merge branch 'stefanbirkner:master' into master
2 parents e638fdc + 27f3eee commit 15e9ad2

File tree

3 files changed

+187
-7
lines changed

3 files changed

+187
-7
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
System Rules is a collection of JUnit rules for testing code which uses
66
`java.lang.System`.
77

8+
[System Lambda](https://github.com/stefanbirkner/system-lambda) is an
9+
alternative to System Rules that leverages the possibilities of Java 8. It is
10+
independent of the test framework. You can use it for example as a replacement
11+
for System Rules in [JUnit Jupiter](https://junit.org/junit5/) and
12+
[TestNG](https://testng.org/doc/index.html).
13+
814

915
## Installation
1016

appveyor.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
version: '{build}'
2-
os: Windows Server 2012
2+
image: Visual Studio 2017
3+
# Download dependencies with Maven 3.6.x because Maven 3.1.1 (which is used by
4+
# mvnw) does not use HTTPS but Maven Central requires HTTPS.
5+
install:
6+
- mvn clean verify -Dgpg.skip -Dmaven.test.failure.ignore
37
build_script:
48
- mvnw clean package -DskipTest -Dgpg.skip
59
test_script:

pom.xml

Lines changed: 176 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22
<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">
33
<modelVersion>4.0.0</modelVersion>
44

5-
<parent>
6-
<groupId>com.github.stefanbirkner</groupId>
7-
<artifactId>lib-parent</artifactId>
8-
<version>8</version>
9-
</parent>
10-
5+
<groupId>com.github.stefanbirkner</groupId>
116
<artifactId>system-rules</artifactId>
127
<version>1.20.0-SNAPSHOT</version>
138
<packaging>jar</packaging>
@@ -54,6 +49,16 @@
5449
<developerConnection>scm:git:[email protected]:stefanbirkner/system-rules.git</developerConnection>
5550
<url>https://github.com/stefanbirkner/system-rules/</url>
5651
</scm>
52+
<distributionManagement>
53+
<snapshotRepository>
54+
<id>ossrh</id>
55+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
56+
</snapshotRepository>
57+
<repository>
58+
<id>ossrh</id>
59+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
60+
</repository>
61+
</distributionManagement>
5762

5863
<properties>
5964
<findbugs.excludeFilterFile>findbugs-exclude.xml</findbugs.excludeFilterFile>
@@ -93,7 +98,146 @@
9398
</dependencies>
9499

95100
<build>
101+
<pluginManagement>
102+
<plugins>
103+
<plugin>
104+
<artifactId>maven-clean-plugin</artifactId>
105+
<version>2.6.1</version>
106+
</plugin>
107+
<plugin>
108+
<artifactId>maven-compiler-plugin</artifactId>
109+
<version>3.3</version>
110+
</plugin>
111+
<plugin>
112+
<artifactId>maven-dependency-plugin</artifactId>
113+
<version>2.10</version>
114+
</plugin>
115+
<plugin>
116+
<artifactId>maven-deploy-plugin</artifactId>
117+
<version>2.8.2</version>
118+
</plugin>
119+
<plugin>
120+
<artifactId>maven-enforcer-plugin</artifactId>
121+
<version>1.4</version>
122+
</plugin>
123+
<plugin>
124+
<artifactId>maven-gpg-plugin</artifactId>
125+
<version>1.6</version>
126+
</plugin>
127+
<plugin>
128+
<artifactId>maven-install-plugin</artifactId>
129+
<version>2.5.2</version>
130+
</plugin>
131+
<plugin>
132+
<artifactId>maven-jar-plugin</artifactId>
133+
<version>2.6</version>
134+
</plugin>
135+
<plugin>
136+
<artifactId>maven-javadoc-plugin</artifactId>
137+
<version>2.10.3</version>
138+
</plugin>
139+
<plugin>
140+
<artifactId>maven-resources-plugin</artifactId>
141+
<version>2.7</version>
142+
</plugin>
143+
<plugin>
144+
<artifactId>maven-site-plugin</artifactId>
145+
<version>3.4</version>
146+
</plugin>
147+
<plugin>
148+
<artifactId>maven-source-plugin</artifactId>
149+
<version>2.4</version>
150+
</plugin>
151+
<plugin>
152+
<artifactId>maven-surefire-plugin</artifactId>
153+
<version>2.18.1</version>
154+
</plugin>
155+
<plugin>
156+
<groupId>org.codehaus.mojo</groupId>
157+
<artifactId>flatten-maven-plugin</artifactId>
158+
<version>1.0.0-beta-5</version>
159+
</plugin>
160+
<plugin>
161+
<groupId>org.codehaus.mojo</groupId>
162+
<artifactId>findbugs-maven-plugin</artifactId>
163+
<version>3.0.5</version>
164+
</plugin>
165+
<plugin>
166+
<groupId>org.sonatype.plugins</groupId>
167+
<artifactId>nexus-staging-maven-plugin</artifactId>
168+
<version>1.6.5</version>
169+
</plugin>
170+
</plugins>
171+
</pluginManagement>
96172
<plugins>
173+
<plugin>
174+
<artifactId>maven-gpg-plugin</artifactId>
175+
<executions>
176+
<execution>
177+
<id>sign-artifacts</id>
178+
<phase>verify</phase>
179+
<goals>
180+
<goal>sign</goal>
181+
</goals>
182+
</execution>
183+
</executions>
184+
</plugin>
185+
<plugin>
186+
<artifactId>maven-javadoc-plugin</artifactId>
187+
<executions>
188+
<execution>
189+
<id>attach-javadocs</id>
190+
<goals>
191+
<goal>jar</goal>
192+
</goals>
193+
</execution>
194+
</executions>
195+
</plugin>
196+
<plugin>
197+
<artifactId>maven-source-plugin</artifactId>
198+
<executions>
199+
<execution>
200+
<id>attach-sources</id>
201+
<goals>
202+
<goal>jar-no-fork</goal>
203+
</goals>
204+
</execution>
205+
</executions>
206+
</plugin>
207+
<plugin>
208+
<groupId>org.codehaus.mojo</groupId>
209+
<artifactId>flatten-maven-plugin</artifactId>
210+
<extensions>true</extensions>
211+
<configuration>
212+
<flattenMode>ossrh</flattenMode>
213+
</configuration>
214+
<executions>
215+
<execution>
216+
<id>flatten</id>
217+
<phase>process-resources</phase>
218+
<goals>
219+
<goal>flatten</goal>
220+
</goals>
221+
</execution>
222+
<execution>
223+
<id>flatten.clean</id>
224+
<phase>clean</phase>
225+
<goals>
226+
<goal>clean</goal>
227+
</goals>
228+
</execution>
229+
</executions>
230+
</plugin>
231+
<plugin>
232+
<groupId>org.sonatype.plugins</groupId>
233+
<artifactId>nexus-staging-maven-plugin</artifactId>
234+
<extensions>true</extensions>
235+
<configuration>
236+
<serverId>ossrh</serverId>
237+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
238+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
239+
</configuration>
240+
</plugin>
97241
<plugin>
98242
<groupId>org.codehaus.mojo</groupId>
99243
<artifactId>animal-sniffer-maven-plugin</artifactId>
@@ -156,5 +300,31 @@
156300
</pluginManagement>
157301
</build>
158302
</profile>
303+
<profile>
304+
<id>findbugs</id>
305+
<activation>
306+
<!-- FindBugs requires Java 7 because it is compiled with JDK 7. -->
307+
<jdk>[1.7,)</jdk>
308+
</activation>
309+
<build>
310+
<plugins>
311+
<plugin>
312+
<groupId>org.codehaus.mojo</groupId>
313+
<artifactId>findbugs-maven-plugin</artifactId>
314+
<configuration>
315+
<effort>Max</effort>
316+
<threshold>Low</threshold>
317+
</configuration>
318+
<executions>
319+
<execution>
320+
<goals>
321+
<goal>check</goal>
322+
</goals>
323+
</execution>
324+
</executions>
325+
</plugin>
326+
</plugins>
327+
</build>
328+
</profile>
159329
</profiles>
160330
</project>

0 commit comments

Comments
 (0)