Skip to content

Commit

Permalink
Merge pull request #36 from reportportal/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
HardNorth authored Jul 12, 2023
2 parents 4c62034 + b55f116 commit 8ee400b
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up JDK 1.8
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '8'
java-version: '11'

- name: Build with Gradle
run: ./gradlew build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ jobs:
version-file: ${{ env.VERSION_FILE }}
version-file-extraction-pattern: ${{ env.VERSION_EXTRACT_PATTERN }}

- name: Set up JDK 1.8
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '8'
java-version: '11'

- name: Setup git credentials
uses: oleksiyrudenko/[email protected]
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Changelog

## [Unreleased]
### Changed
- Client version updated on [5.1.22](https://github.com/reportportal/client-java/releases/tag/5.1.22), by @HardNorth
- Cucumber version updated on 7.13.0, by @HardNorth
### Removed
- Java 8 support, by @HardNorth

## [5.1.3]
### Changed
Expand Down
19 changes: 10 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,31 +29,32 @@ project.ext.limits = [
'class' : 90
]

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'

repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}

dependencies {
api 'com.epam.reportportal:client-java:5.1.16'
api 'com.epam.reportportal:client-java:5.1.22'
api 'com.epam.reportportal:commons-model:5.0.0'
api 'com.google.code.findbugs:jsr305:3.0.2'

implementation "io.cucumber:cucumber-gherkin:${project.cucumber_version}"
implementation 'org.slf4j:slf4j-api:1.7.36'
implementation 'org.slf4j:slf4j-api:2.0.4'

testImplementation "io.cucumber:cucumber-java:${project.cucumber_version}"
testImplementation 'com.github.reportportal:agent-java-test-utils:236a68c'
testImplementation 'com.epam.reportportal:agent-java-test-utils:0.0.2'
testImplementation "io.cucumber:cucumber-testng:${project.cucumber_version}"
testImplementation 'org.aspectj:aspectjweaver:1.9.2'
testImplementation 'org.aspectj:aspectjweaver:1.9.19'
testImplementation 'org.hamcrest:hamcrest-core:2.2'
testImplementation 'org.mockito:mockito-core:3.3.3'
testImplementation 'org.mockito:mockito-junit-jupiter:3.3.3'
testImplementation 'ch.qos.logback:logback-classic:1.2.11'
testImplementation 'com.epam.reportportal:logger-java-logback:5.1.1'
testImplementation 'ch.qos.logback:logback-classic:1.4.5'
testImplementation 'com.epam.reportportal:logger-java-logback:5.1.5'
testImplementation ("org.junit.platform:junit-platform-runner:${project.junit_runner_version}") {
exclude module: 'junit'
}
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version=5.1.4-SNAPSHOT
version=5.2.0-SNAPSHOT
description=EPAM Report portal. Cucumber JVM version [6.0.0; ) adapter
cucumber_version=7.3.4
cucumber_version=7.13.0
junit_version=5.6.3
junit_runner_version=1.6.3
scripts_url=https://raw.githubusercontent.com/reportportal/gradle-scripts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ protected StartLaunchRQ buildStartLaunchRq(Date startTime, ListenerParameters pa
return rq;
}

private final Supplier<Launch> launch = new MemoizingSupplier<>(new Supplier<Launch>() {
private final Supplier<Launch> launch = new MemoizingSupplier<>(new Supplier<>() {

/* should not be lazy */
private final Date startTime = Calendar.getInstance().getTime();
Expand Down Expand Up @@ -675,7 +675,7 @@ protected void beforeScenario(@Nonnull Feature feature, @Nonnull TestCase scenar
Optional<RuleContext> rule = s.getRule();
Optional<RuleContext> currentRule = f.getCurrentRule();
if (!currentRule.equals(rule)) {
if (!currentRule.isPresent()) {
if (currentRule.isEmpty()) {
rule.ifPresent(r -> {
r.setId(startRule(f.getId(), buildStartRuleRequest(r.getRule(), getCodeRef(feature.getUri(), r.getLine()))));
f.setCurrentRule(r);
Expand Down

0 comments on commit 8ee400b

Please sign in to comment.