Skip to content

Commit d96442d

Browse files
authored
Merge pull request #18 from reportportal/develop
Release
2 parents e375038 + 2e45f4d commit d96442d

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
java-version: '8'
5555

5656
- name: Setup git credentials
57-
uses: oleksiyrudenko/gha-git-credentials@v2.1.1
57+
uses: oleksiyrudenko/gha-git-credentials@v2-latest
5858
with:
5959
name: 'reportportal.io'
6060

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22

33
## [Unreleased]
4+
### Added
5+
- New Json and Text types to `Constants` class, by @HardNorth
6+
### Changed
7+
- Client version updated on [5.2.23](https://github.com/reportportal/client-java/releases/tag/5.2.23), by @HardNorth
48

59
## [5.2.3]
610
### Changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description=Report Portal Java formatting utils for Agents and Loggers
33
junit5_version=5.6.3
44
junit5_runner_version=1.6.3
55
mockito_version=4.5.1
6-
client_version=5.2.13
6+
client_version=5.2.23
77
jsr305_version=3.0.2
88
scripts_url=https://raw.githubusercontent.com/reportportal/gradle-scripts
99
scripts_branch=master

src/main/java/com/epam/reportportal/formatting/http/Constants.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,13 @@ public class Constants {
5252
ContentType.TEXT_PLAIN,
5353
ContentType.TEXT_HTML,
5454
ContentType.TEXT_XML,
55-
ContentType.APPLICATION_XML
55+
ContentType.APPLICATION_XML,
56+
ContentType.APPLICATION_SOAP_XML,
57+
ContentType.APPLICATION_ATOM_XML,
58+
// Can't use ContentType.TEXT_JSON, etc. because client-java dependency marked as compileOnly
59+
"text/json",
60+
"application/x.reportportal.launch.v2+json",
61+
"application/x.reportportal.test.v2+json"
5662
)));
5763

5864
public static final Set<String> FORM_TYPES = Collections.singleton(ContentType.APPLICATION_FORM_URLENCODED);
@@ -72,7 +78,10 @@ public class Constants {
7278
put(ContentType.APPLICATION_XHTML_XML, XmlPrettier.INSTANCE);
7379
put(ContentType.TEXT_XML, XmlPrettier.INSTANCE);
7480
put(ContentType.APPLICATION_JSON, JsonPrettier.INSTANCE);
81+
// Can't use ContentType.TEXT_JSON, etc. because client-java dependency marked as compileOnly
7582
put("text/json", JsonPrettier.INSTANCE);
83+
put("application/x.reportportal.launch.v2+json", JsonPrettier.INSTANCE);
84+
put("application/x.reportportal.test.v2+json", JsonPrettier.INSTANCE);
7685
put(ContentType.TEXT_HTML, HtmlPrettier.INSTANCE);
7786
}});
7887

0 commit comments

Comments
 (0)