Skip to content

Commit a413524

Browse files
author
Aleksey Genus
committed
Add changes to maven and gradle changelogs
Add tests
1 parent d77a339 commit a413524

File tree

5 files changed

+22
-0
lines changed

5 files changed

+22
-0
lines changed

plugin-gradle/CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `3.27.0`).
44

55
## [Unreleased]
6+
### Changes
7+
* **POTENTIALLY BREAKING** `sortByKeys` for JSON formatting now takes into account objects inside arrays ([#1546](https://github.com/diffplug/spotless/pull/1546))
68

79
## [6.14.0] - 2023-01-26
810
### Added

plugin-maven/CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
55
## [Unreleased]
66
### Added
77
* A synthesis log with the number of considered files is added after each formatter execution ([#1507](https://github.com/diffplug/spotless/pull/1507))
8+
### Changes
9+
* **POTENTIALLY BREAKING** `sortByKeys` for JSON formatting now takes into account objects inside arrays ([#1546](https://github.com/diffplug/spotless/pull/1546))
810

911
## [2.31.0] - 2023-01-26
1012
### Added

testlib/src/main/resources/json/sortByKeysAfter.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
2,
77
1
88
],
9+
"_objectsInArraysAreSorted": [
10+
{
11+
"a": "1",
12+
"b": 2
13+
}
14+
],
915
"a": 3,
1016
"c": 4,
1117
"x": 5,

testlib/src/main/resources/json/sortByKeysAfterDisabled.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,11 @@
1515
3,
1616
2,
1717
1
18+
],
19+
"_objectsInArraysAreSorted": [
20+
{
21+
"b": 2,
22+
"a": "1"
23+
}
1824
]
1925
}

testlib/src/main/resources/json/sortByKeysBefore.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,11 @@
1515
3,
1616
2,
1717
1
18+
],
19+
"_objectsInArraysAreSorted": [
20+
{
21+
"b": 2,
22+
"a": "1"
23+
}
1824
]
1925
}

0 commit comments

Comments
 (0)