Skip to content

Commit

Permalink
[Gradle Release Plugin] - pre tag commit: 'v1.11.0'.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins committed Jan 16, 2024
2 parents 4a3c863 + bf09bfa commit 9a66b1c
Show file tree
Hide file tree
Showing 9 changed files with 2,723 additions and 85 deletions.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
pipeline {
agent {
docker {
image 'eclipse-temurin:11'
// Need an image with git installed that is why we stick with maven image for now though we're using gradle
image 'maven:3.6-jdk-11'
args '-v /home/jenkins/.gradle:/var/gradle/.gradle -v /home/jenkins/.gnupg:/.gnupg -e GRADLE_OPTS=-Duser.home=/var/gradle'
}
}
Expand Down
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!-- This file is auto generated during release from readme/README.md -->

[![Maven Central](https://img.shields.io/static/v1?label=MavenCentral&message=1.10.1&color=blue)](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-bom/1.10.1/jar)
[![JavaDoc](https://img.shields.io/static/v1?label=JavaDoc&message=1.10.1&color=orange)](http://www.javadoc.io/doc/de.skuzzle.test/snapshot-tests-core/1.10.1)
[![Reference](https://img.shields.io/static/v1?label=Reference&message=1.10.1&color=orange)](https://skuzzle.github.io/snapshot-tests/reference/1.10.1)
[![Maven Central](https://img.shields.io/static/v1?label=MavenCentral&message=1.11.0&color=blue)](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-bom/1.11.0/jar)
[![JavaDoc](https://img.shields.io/static/v1?label=JavaDoc&message=1.11.0&color=orange)](http://www.javadoc.io/doc/de.skuzzle.test/snapshot-tests-core/1.11.0)
[![Reference](https://img.shields.io/static/v1?label=Reference&message=1.11.0&color=orange)](https://skuzzle.github.io/snapshot-tests/reference/1.11.0)
[![Coverage Status](https://coveralls.io/repos/github/skuzzle/snapshot-tests/badge.svg?branch=main)](https://coveralls.io/github/skuzzle/snapshot-tests?branch=main)
[![Twitter Follow](https://img.shields.io/twitter/follow/ProjectPolly.svg?style=social)](https://twitter.com/ProjectPolly)

Expand All @@ -16,26 +16,26 @@ actual object against the stored snapshot.
- [x] Requires Java 11, supports Java 17

Supported test frameworks:
- [x] JUnit5 (tested against `5.9.2`) via [snapshot-tests-junit5](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-junit5/1.10.1/jar)
- [x] JUnit4 (tested against `4.13.2`) via [snapshot-tests-junit4](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-junit4/1.10.1/jar)
- [x] JUnit5 (tested against `5.10.1`) via [snapshot-tests-junit5](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-junit5/1.11.0/jar)
- [x] JUnit4 (tested against `4.13.2`) via [snapshot-tests-junit4](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-junit4/1.11.0/jar)

Supported snapshot formats:
- [x] generic plain text (included by default via [snapshot-tests-core](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-core/1.10.1/jar))
- [x] Json via [snapshot-tests-json](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-json/1.10.1/jar)
- [x] XML via [snapshot-tests-xml](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-xml/1.10.1/jar) xor [snapshot-tests-xml-legacy](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-xml-legacy/1.10.1/jar)
- [x] HTML via [snapshot-tests-html](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-html/1.10.1/jar)
- [x] generic plain text (included by default via [snapshot-tests-core](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-core/1.11.0/jar))
- [x] Json via [snapshot-tests-json](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-json/1.11.0/jar)
- [x] XML via [snapshot-tests-xml](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-xml/1.11.0/jar) xor [snapshot-tests-xml-legacy](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-xml-legacy/1.11.0/jar)
- [x] HTML via [snapshot-tests-html](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-html/1.11.0/jar)

Read more about snapshot testing in this accompanying [blog post](https://simon.taddiken.net/the-case-for-snapshot-testing/).

### Latest Maven Central coordinates

Please check out the GitHub release page to find Maven & Gradle coordinates for the latest
release [1.10.1](https://github.com/skuzzle/snapshot-tests/releases/tag/v1.10.1)
release [1.11.0](https://github.com/skuzzle/snapshot-tests/releases/tag/v1.11.0)

### Reference Documentation
Starting with release `1.8.0` we provide a new external reference documentation:
* [Latest](https://skuzzle.github.io/snapshot-tests/reference/latest): Always points to the latest version
* [1.10.1](https://skuzzle.github.io/snapshot-tests/reference/1.10.1): Points to a specific version
* [1.11.0](https://skuzzle.github.io/snapshot-tests/reference/1.11.0): Points to a specific version

Over the course of the next releases most of the contents of this README will be transitioned into the new reference
documentation.
Expand All @@ -49,13 +49,13 @@ Add the following dependencies to your build
<dependency>
<groupId>de.skuzzle.test</groupId>
<artifactId>snapshot-tests-junit5</artifactId>
<version>1.10.1</version>
<version>1.11.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>de.skuzzle.test</groupId>
<artifactId>snapshot-tests-json</artifactId>
<version>1.10.1</version>
<version>1.11.0</version>
<scope>test</scope>
</dependency>
```
Expand Down Expand Up @@ -113,7 +113,7 @@ add a dependency for your preferred snapshot format like `snapshot-tests-jackson
<dependency>
<groupId>de.skuzzle.test</groupId>
<artifactId>snapshot-tests-json</artifactId>
<version>1.10.1</version>
<version>1.11.0</version>
<scope>test</scope>
<exclusions>
<exclusion>
Expand All @@ -127,7 +127,7 @@ add a dependency for your preferred snapshot format like `snapshot-tests-jackson
or

```
testImplementation('de.skuzzle.test:snapshot-tests-json:1.10.1') {
testImplementation('de.skuzzle.test:snapshot-tests-json:1.11.0') {
exclude group: 'org.junit.jupiter', module: 'junit-jupiter-api'
}
```
Expand Down
77 changes: 41 additions & 36 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
**Migration Info**:

> **Note**
> [!NOTE]
> The following modules have been deprecated: `snapshot-tests-jackson`, `snapshot-tests-jaxb` and
> `snapshot-tests-jaxb-jakarta`. New drop-in replacements are provided via `snapshot-tests-json`,
> `snapshpt-tests-xml-legacy` and `snapshot-tests-xml`. (See also:
Expand All @@ -11,41 +11,46 @@
>
> The deprecated modules will be removed with the next major version!
> **Note**
> [!NOTE]
> When upgrading from a version prior to `1.8.0`, instead of depending on `snapshot-tests-core` you should now
> either depend on `snapshot-tests-junit5` or `snapshot-tests-junit4`.
> This will become mandatory with the next major version!

### Changes

* [#93](https://github.com/skuzzle/snapshot-tests/issues/93): Fix bug in determining the line ending from _git_

* Update to JUnit `5.10.1` (coming from `5.9.2`)
* Update to opentest4j `1.3.0` (coming from `1.3.0`)
* Update to jackson `2.16.1` (coming from `2.14.2`)
* Update to assertj `3.25.1` (coming from `3.24.2`)
* Update to jakarta.xml.bind-api `4.0.1` (coming from `4.0.0`)
* Update to jaxb-runtime `2.3.9` (coming from `2.3.3`)
* (Jakarta) Update to jaxb-runtime `4.0.4` (coming from `4.0.1`)

## Reference Documentation

[![Reference](https://img.shields.io/static/v1?label=Reference&message=1.10.1&color=orange)](https://skuzzle.github.io/snapshot-tests/reference/1.10.1)
[![Reference](https://img.shields.io/static/v1?label=Reference&message=1.11.0&color=orange)](https://skuzzle.github.io/snapshot-tests/reference/1.11.0)

Reference documentation for this release: https://skuzzle.github.io/snapshot-tests/reference/1.10.1
Reference documentation for this release: https://skuzzle.github.io/snapshot-tests/reference/1.11.0


## BOM Artifact
Manages the versions of all modules in case you are using multiple in your project

[![Maven Central](https://img.shields.io/static/v1?label=MavenCentral&message=1.10.1&color=blue)](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-bom/1.10.1/jar)
[![Maven Central](https://img.shields.io/static/v1?label=MavenCentral&message=1.11.0&color=blue)](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-bom/1.11.0/jar)

```xml
<dependency>
<groupId>de.skuzzle.test</groupId>
<artifactId>snapshot-tests-bom</artifactId>
<version>1.10.1</version>
<version>1.11.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
```

```
testImplementation(platform("de.skuzzle.test:snapshot-tests-bom:1.10.1"))
testImplementation(platform("de.skuzzle.test:snapshot-tests-bom:1.11.0"))
```

## Artifacts
Expand All @@ -56,36 +61,36 @@ testImplementation(platform("de.skuzzle.test:snapshot-tests-bom:1.10.1"))

If you are using **JUnit5**:

[![Maven Central](https://img.shields.io/static/v1?label=MavenCentral&message=1.10.1&color=blue)](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-junit5/1.10.1/jar) [![JavaDoc](https://img.shields.io/static/v1?label=JavaDoc&message=1.10.1&color=orange)](http://www.javadoc.io/doc/de.skuzzle.test/snapshot-tests-junit5/1.10.1)
[![Maven Central](https://img.shields.io/static/v1?label=MavenCentral&message=1.11.0&color=blue)](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-junit5/1.11.0/jar) [![JavaDoc](https://img.shields.io/static/v1?label=JavaDoc&message=1.11.0&color=orange)](http://www.javadoc.io/doc/de.skuzzle.test/snapshot-tests-junit5/1.11.0)

```xml
<dependency>
<groupId>de.skuzzle.test</groupId>
<artifactId>snapshot-tests-junit5</artifactId>
<version>1.10.1</version>
<version>1.11.0</version>
<scope>test</scope>
</dependency>
```

```
testImplementation("de.skuzzle.test:snapshot-tests-junit5:1.10.1")
testImplementation("de.skuzzle.test:snapshot-tests-junit5:1.11.0")
```

If you are using **JUnit4**:

[![Maven Central](https://img.shields.io/static/v1?label=MavenCentral&message=1.10.1&color=blue)](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-junit4/1.10.1/jar) [![JavaDoc](https://img.shields.io/static/v1?label=JavaDoc&message=1.10.1&color=orange)](http://www.javadoc.io/doc/de.skuzzle.test/snapshot-tests-junit4/1.10.1)
[![Maven Central](https://img.shields.io/static/v1?label=MavenCentral&message=1.11.0&color=blue)](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-junit4/1.11.0/jar) [![JavaDoc](https://img.shields.io/static/v1?label=JavaDoc&message=1.11.0&color=orange)](http://www.javadoc.io/doc/de.skuzzle.test/snapshot-tests-junit4/1.11.0)

```xml
<dependency>
<groupId>de.skuzzle.test</groupId>
<artifactId>snapshot-tests-junit4</artifactId>
<version>1.10.1</version>
<version>1.11.0</version>
<scope>test</scope>
</dependency>
```

```
testImplementation("de.skuzzle.test:snapshot-tests-junit4:1.10.1")
testImplementation("de.skuzzle.test:snapshot-tests-junit4:1.11.0")
```

### Choose a snapshot format (optional)
Expand All @@ -94,70 +99,70 @@ testImplementation("de.skuzzle.test:snapshot-tests-junit4:1.10.1")

If you want **JSON** based snapshots:

[![Maven Central](https://img.shields.io/static/v1?label=MavenCentral&message=1.10.1&color=blue)](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-json/1.10.1/jar) [![JavaDoc](https://img.shields.io/static/v1?label=JavaDoc&message=1.10.1&color=orange)](http://www.javadoc.io/doc/de.skuzzle.test/snapshot-tests-jackson/1.10.1)
[![Maven Central](https://img.shields.io/static/v1?label=MavenCentral&message=1.11.0&color=blue)](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-json/1.11.0/jar) [![JavaDoc](https://img.shields.io/static/v1?label=JavaDoc&message=1.11.0&color=orange)](http://www.javadoc.io/doc/de.skuzzle.test/snapshot-tests-jackson/1.11.0)

```xml
<dependency>
<groupId>de.skuzzle.test</groupId>
<artifactId>snapshot-tests-json</artifactId>
<version>1.10.1</version>
<version>1.11.0</version>
<scope>test</scope>
</dependency>
```

```
testImplementation("de.skuzzle.test:snapshot-tests-json:1.10.1")
testImplementation("de.skuzzle.test:snapshot-tests-json:1.11.0")
```

If you want **XML** based snapshots using jaxb and legacy `javax.xml` namespaces:

[![Maven Central](https://img.shields.io/static/v1?label=MavenCentral&message=1.10.1&color=blue)](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-xml-legacy/1.10.1/jar) [![JavaDoc](https://img.shields.io/static/v1?label=JavaDoc&message=1.10.1&color=orange)](http://www.javadoc.io/doc/de.skuzzle.test/snapshot-tests-jaxb/1.10.1)
[![Maven Central](https://img.shields.io/static/v1?label=MavenCentral&message=1.11.0&color=blue)](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-xml-legacy/1.11.0/jar) [![JavaDoc](https://img.shields.io/static/v1?label=JavaDoc&message=1.11.0&color=orange)](http://www.javadoc.io/doc/de.skuzzle.test/snapshot-tests-jaxb/1.11.0)

```xml
<dependency>
<groupId>de.skuzzle.test</groupId>
<artifactId>snapshot-tests-xml-legacy</artifactId>
<version>1.10.1</version>
<version>1.11.0</version>
<scope>test</scope>
</dependency>
```

```
testImplementation("de.skuzzle.test:snapshot-tests-xml-legacy:1.10.1")
testImplementation("de.skuzzle.test:snapshot-tests-xml-legacy:1.11.0")
```

If you want **XML** based snapshots using jaxb new `jakarta.xml` namespaces:

[![Maven Central](https://img.shields.io/static/v1?label=MavenCentral&message=1.10.1&color=blue)](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-xml/1.10.1/jar) [![JavaDoc](https://img.shields.io/static/v1?label=JavaDoc&message=1.10.1&color=orange)](http://www.javadoc.io/doc/de.skuzzle.test/snapshot-tests-jaxb-jakarta/1.10.1)
[![Maven Central](https://img.shields.io/static/v1?label=MavenCentral&message=1.11.0&color=blue)](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-xml/1.11.0/jar) [![JavaDoc](https://img.shields.io/static/v1?label=JavaDoc&message=1.11.0&color=orange)](http://www.javadoc.io/doc/de.skuzzle.test/snapshot-tests-jaxb-jakarta/1.11.0)

```xml
<dependency>
<groupId>de.skuzzle.test</groupId>
<artifactId>snapshot-tests-xml</artifactId>
<version>1.10.1</version>
<version>1.11.0</version>
<scope>test</scope>
</dependency>
```

```
testImplementation("de.skuzzle.test:snapshot-tests-xml:1.10.1")
testImplementation("de.skuzzle.test:snapshot-tests-xml:1.11.0")
```

If you want **HTML** based snapshots:

[![Maven Central](https://img.shields.io/static/v1?label=MavenCentral&message=1.10.1&color=blue)](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-html/1.10.1/jar) [![JavaDoc](https://img.shields.io/static/v1?label=JavaDoc&message=1.10.1&color=orange)](http://www.javadoc.io/doc/de.skuzzle.test/snapshot-tests-html/1.10.1)
[![Maven Central](https://img.shields.io/static/v1?label=MavenCentral&message=1.11.0&color=blue)](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-html/1.11.0/jar) [![JavaDoc](https://img.shields.io/static/v1?label=JavaDoc&message=1.11.0&color=orange)](http://www.javadoc.io/doc/de.skuzzle.test/snapshot-tests-html/1.11.0)

```xml
<dependency>
<groupId>de.skuzzle.test</groupId>
<artifactId>snapshot-tests-html</artifactId>
<version>1.10.1</version>
<version>1.11.0</version>
<scope>test</scope>
</dependency>
```

```
testImplementation("de.skuzzle.test:snapshot-tests-html:1.10.1")
testImplementation("de.skuzzle.test:snapshot-tests-html:1.11.0")
```
</details>

Expand All @@ -168,52 +173,52 @@ testImplementation("de.skuzzle.test:snapshot-tests-html:1.10.1")

Directory Params

[![Maven Central](https://img.shields.io/static/v1?label=MavenCentral&message=1.10.1&color=blue)](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-directory-params/1.10.1/jar) [![JavaDoc](https://img.shields.io/static/v1?label=JavaDoc&message=1.10.1&color=orange)](http://www.javadoc.io/doc/de.skuzzle.test/snapshot-tests-directory-params/1.10.1)
[![Maven Central](https://img.shields.io/static/v1?label=MavenCentral&message=1.11.0&color=blue)](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-directory-params/1.11.0/jar) [![JavaDoc](https://img.shields.io/static/v1?label=JavaDoc&message=1.11.0&color=orange)](http://www.javadoc.io/doc/de.skuzzle.test/snapshot-tests-directory-params/1.11.0)

```xml
<dependency>
<groupId>de.skuzzle.test</groupId>
<artifactId>snapshot-tests-directory-params</artifactId>
<version>1.10.1</version>
<version>1.11.0</version>
<scope>test</scope>
</dependency>
```

```
testImplementation("de.skuzzle.test:snapshot-tests-directory-params:1.10.1")
testImplementation("de.skuzzle.test:snapshot-tests-directory-params:1.11.0")
```

Diff-Tool

[![Maven Central](https://img.shields.io/static/v1?label=MavenCentral&message=1.10.1&color=blue)](https://search.maven.org/artifact/de.skuzzle.test/diff-tool/1.10.1/jar) [![JavaDoc](https://img.shields.io/static/v1?label=JavaDoc&message=1.10.1&color=orange)](http://www.javadoc.io/doc/de.skuzzle.test/diff-tool/1.10.1)
[![Maven Central](https://img.shields.io/static/v1?label=MavenCentral&message=1.11.0&color=blue)](https://search.maven.org/artifact/de.skuzzle.test/diff-tool/1.11.0/jar) [![JavaDoc](https://img.shields.io/static/v1?label=JavaDoc&message=1.11.0&color=orange)](http://www.javadoc.io/doc/de.skuzzle.test/diff-tool/1.11.0)

```xml
<dependency>
<groupId>de.skuzzle.test</groupId>
<artifactId>diff-tool</artifactId>
<version>1.10.1</version>
<version>1.11.0</version>
<scope>test</scope>
</dependency>
```

```
testImplementation("de.skuzzle.test:diff-tool:1.10.1")
testImplementation("de.skuzzle.test:diff-tool:1.11.0")
```

Object normalization (⚠️ Experimental⚠)

[![Maven Central](https://img.shields.io/static/v1?label=MavenCentral&message=1.10.1&color=blue)](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-normalize/1.10.1/jar) [![JavaDoc](https://img.shields.io/static/v1?label=JavaDoc&message=1.10.1&color=orange)](http://www.javadoc.io/doc/de.skuzzle.test/snapshot-tests-normalize/1.10.1)
[![Maven Central](https://img.shields.io/static/v1?label=MavenCentral&message=1.11.0&color=blue)](https://search.maven.org/artifact/de.skuzzle.test/snapshot-tests-normalize/1.11.0/jar) [![JavaDoc](https://img.shields.io/static/v1?label=JavaDoc&message=1.11.0&color=orange)](http://www.javadoc.io/doc/de.skuzzle.test/snapshot-tests-normalize/1.11.0)

```xml
<dependency>
<groupId>de.skuzzle.test</groupId>
<artifactId>snapshot-tests-normalize</artifactId>
<version>1.10.1</version>
<version>1.11.0</version>
<scope>test</scope>
</dependency>
```

```
testImplementation("de.skuzzle.test:snapshot-tests-normalize:1.10.1")
testImplementation("de.skuzzle.test:snapshot-tests-normalize:1.11.0")
```
</details>
Binary file added docs/reference/1.11.0/images/eclipse_diff.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 9a66b1c

Please sign in to comment.