Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EPMRPP-90180 update dependencies (Instant time) #30

Merged
merged 3 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ dependencies {
implementation 'com.epam.reportportal:plugin-api'
annotationProcessor 'com.epam.reportportal:plugin-api'
} else {
implementation 'com.github.reportportal:plugin-api:cc3c5c8e'
annotationProcessor 'com.github.reportportal:plugin-api:cc3c5c8e'
implementation 'com.github.reportportal:plugin-api:eec4267'
annotationProcessor 'com.github.reportportal:plugin-api:eec4267'
}

implementation group: 'javax.servlet', name: 'javax.servlet-api', version: '4.0.1'
Expand Down Expand Up @@ -125,4 +125,4 @@ task assemblePlugins(type: Copy) {
dependsOn subprojects.assemblePlugin
}

compileJava.dependsOn npm_run_build
compileJava.dependsOn npm_run_build
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.epam.reportportal.extension.gitlab.command;

import static com.epam.ta.reportportal.commons.EntityUtils.TO_DATE;
import static com.epam.ta.reportportal.commons.EntityUtils.INSTANT_TO_LDT;
import static java.util.Optional.ofNullable;

import com.epam.reportportal.extension.gitlab.client.GitlabClient;
Expand Down Expand Up @@ -159,7 +159,7 @@ private String getFormattedMessage(Log log) {
StringBuilder messageBuilder = new StringBuilder();
messageBuilder.append(CODE);
ofNullable(log.getLogTime()).ifPresent(logTime -> messageBuilder.append(" Time: ")
.append(dateFormat.format(TO_DATE.apply(logTime))).append(", "));
.append(dateFormat.format(INSTANT_TO_LDT.apply(logTime))).append(", "));
ofNullable(log.getLogLevel()).ifPresent(
logLevel -> messageBuilder.append("Level: ").append(logLevel).append(", "));
messageBuilder.append("Log: ").append(log.getLogMessage()).append(CODE).append("\n\n");
Expand All @@ -180,4 +180,4 @@ private void addAttachment(StringBuilder descriptionBuilder, Attachment attachme
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
import com.epam.ta.reportportal.entity.integration.Integration;
import com.epam.ta.reportportal.entity.integration.IntegrationParams;
import com.epam.ta.reportportal.entity.integration.IntegrationType;

import java.time.LocalDateTime;
import java.time.Instant;
import java.util.HashMap;
import java.util.List;

Expand Down Expand Up @@ -58,7 +57,7 @@ private void createIntegration(String name, IntegrationType integrationType) {
Integration integration = new Integration();
integration.setName(name);
integration.setType(integrationType);
integration.setCreationDate(LocalDateTime.now());
integration.setCreationDate(Instant.now());
integration.setEnabled(true);
integration.setCreator("SYSTEM");
integration.setParams(new IntegrationParams(new HashMap<>()));
Expand Down
Loading