Skip to content

Commit 2c12fa4

Browse files
authored
EPMRPP-97485 || Update to java 21 (#64)
1 parent 8cbbffb commit 2c12fa4

10 files changed

+266
-205
lines changed

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
- name: Checkout repository
1919
uses: actions/checkout@v2
2020

21-
- name: Set up JDK 11
21+
- name: Set up JDK 21
2222
uses: actions/setup-java@v2
2323
with:
2424
distribution: 'adopt'
25-
java-version: '11'
25+
java-version: '21'
2626

2727
- name: Grant execute permission for gradlew
2828
run: chmod +x gradlew

.github/workflows/manually-release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ jobs:
2626
- name: Checkout repository
2727
uses: actions/checkout@v2
2828

29-
- name: Set up JDK 11
29+
- name: Set up JDK 21
3030
uses: actions/setup-java@v2
3131
with:
3232
distribution: 'adopt'
33-
java-version: '11'
33+
java-version: '21'
3434

3535
- name: Grant execute permission for gradlew
3636
run: chmod +x gradlew

.github/workflows/release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ on:
1111

1212
env:
1313
GH_USER_NAME: github.actor
14-
SCRIPTS_VERSION: 5.10.0
15-
BOM_VERSION: 5.11.2
14+
SCRIPTS_VERSION: 5.12.1
15+
BOM_VERSION: 5.13.0
1616
REPOSITORY_URL: 'https://maven.pkg.github.com/'
1717

1818
jobs:
@@ -22,11 +22,11 @@ jobs:
2222
- name: Checkout repository
2323
uses: actions/checkout@v2
2424

25-
- name: Set up JDK 11
25+
- name: Set up JDK 21
2626
uses: actions/setup-java@v2
2727
with:
2828
distribution: 'adopt'
29-
java-version: '11'
29+
java-version: '21'
3030

3131
- name: Grant execute permission for gradlew
3232
run: chmod +x gradlew

.travis.yml

-18
This file was deleted.

build.gradle

+49-34
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id "io.spring.dependency-management" version "1.0.9.RELEASE"
2+
id "io.spring.dependency-management" version "1.1.4"
33
id 'java'
44
id 'jacoco'
55
}
@@ -17,7 +17,6 @@ def scriptsUrl = 'https://raw.githubusercontent.com/reportportal/gradle-scripts/
1717

1818
apply from: scriptsUrl + '/release-fat.gradle'
1919
apply from: scriptsUrl + '/signing.gradle'
20-
apply from: scriptsUrl + '/build-quality.gradle'
2120

2221
repositories {
2322
maven { url "https://m2proxy.atlassian.com/repository/public" }
@@ -30,40 +29,42 @@ repositories {
3029

3130
dependencyManagement {
3231
imports {
33-
mavenBom(releaseMode ? 'com.epam.reportportal:commons-bom:' + getProperty('bom.version') : 'com.epam.reportportal:commons-bom:5.11.2')
32+
mavenBom(releaseMode ? 'com.epam.reportportal:commons-bom:' + getProperty('bom.version') : 'com.epam.reportportal:commons-bom:5.13.0')
3433
}
3534
}
3635

37-
sourceCompatibility = JavaVersion.VERSION_11
38-
targetCompatibility = JavaVersion.VERSION_11
36+
java {
37+
sourceCompatibility = JavaVersion.VERSION_21
38+
targetCompatibility = JavaVersion.VERSION_21
39+
}
3940

4041
dependencies {
4142
if (releaseMode) {
4243
implementation 'com.epam.reportportal:commons-dao'
4344
implementation 'com.epam.reportportal:plugin-api'
4445
annotationProcessor 'com.epam.reportportal:plugin-api'
4546
} else {
46-
implementation 'com.github.reportportal:commons-dao:2834dd5'
47-
implementation 'com.github.reportportal:plugin-api:6465099'
48-
annotationProcessor 'com.github.reportportal:plugin-api:6465099'
47+
implementation 'com.github.reportportal:commons-dao:8dcc514'
48+
implementation 'com.github.reportportal:plugin-api:815c74a'
49+
annotationProcessor 'com.github.reportportal:plugin-api:815c74a'
4950
}
5051
implementation 'org.hibernate:hibernate-core:5.6.15.Final'
5152

52-
compile 'ch.qos.logback:logback-classic:1.2.3'
53-
compile 'org.slf4j:slf4j-api:1.7.25'
53+
implementation 'ch.qos.logback:logback-classic:1.2.3'
54+
implementation 'org.slf4j:slf4j-api:1.7.25'
5455

55-
compile 'io.atlassian.fugue:fugue:4.7.2'
56-
compile 'com.atlassian.jira:jira-rest-java-client-core:5.2.4'
56+
implementation 'io.atlassian.fugue:fugue:4.7.2'
57+
implementation 'com.atlassian.jira:jira-rest-java-client-core:5.2.4'
5758

58-
compile 'net.oauth.core:oauth:20090617'
59-
compile 'net.oauth.core:oauth-httpclient4:20090913'
59+
implementation 'net.oauth.core:oauth:20090617'
60+
implementation 'net.oauth.core:oauth-httpclient4:20090913'
6061

61-
compile 'org.apache.tika:tika-core:1.14'
62+
implementation 'org.apache.tika:tika-core:1.14'
6263

63-
testCompile 'org.springframework:spring-test:5.2.1.RELEASE'
64-
testCompile 'org.hamcrest:hamcrest-all:1.3'
65-
testCompile 'junit:junit:4.12'
66-
testCompile 'org.mockito:mockito-all:1.10.19'
64+
testImplementation 'org.springframework:spring-test:5.2.1.RELEASE'
65+
testImplementation 'org.hamcrest:hamcrest-all:1.3'
66+
testImplementation 'junit:junit:4.12'
67+
testImplementation 'org.mockito:mockito-all:1.10.19'
6768
}
6869

6970
artifacts {
@@ -73,23 +74,23 @@ artifacts {
7374
test {
7475
jacocoTestReport {
7576
reports {
76-
xml.enabled true
77+
xml.required = true
7778
}
7879
}
7980
}
8081

8182
build.dependsOn jacocoTestReport
8283

8384
wrapper {
84-
gradleVersion = '5.4.1'
85+
gradleVersion = '8.10.2'
8586
}
8687

8788
generatePomFileForShadowPublication { pom.packaging = "jar" }
8889

8990
jar {
9091
manifest {
9192
attributes(
92-
"Class-Path": configurations.compile.collect { it.getName() }.join(' '),
93+
"Class-Path": configurations.compileClasspath.collect { it.getName() }.join(' '),
9394
"Plugin-Id": "${pluginID}",
9495
"Plugin-Version": "${project.version}",
9596
"Plugin-Provider": "Andrei Varabyeu",
@@ -101,18 +102,32 @@ jar {
101102
}
102103

103104
shadowJar {
104-
archiveClassifier.set(null)
105-
configurations = [project.configurations.compile]
105+
configurations = [project.configurations.compileClasspath]
106106
zip64 true
107107
dependencies {
108-
exclude(dependency('com.github.reportportal:'))
109-
exclude(dependency('com.epam.reportportal:'))
110-
exclude(dependency('org.springframework:'))
111-
exclude(dependency('org.springframework.security:'))
112-
exclude(dependency('org.springframework.data:'))
113-
exclude(dependency('org.springframework.boot:'))
114-
exclude(dependency('ch.qos.logback:'))
115-
exclude(dependency('org.slf4j:'))
108+
include(dependency("com.atlassian.jira:jira-rest-java-client-api:.*"))
109+
include(dependency("com.atlassian.jira:jira-rest-java-client-core:.*"))
110+
include(dependency("com.atlassian.httpclient:atlassian-httpclient-api:.*"))
111+
include(dependency("com.atlassian.httpclient:atlassian-httpclient-library:.*"))
112+
include(dependency("com.atlassian.sal:sal-api:.*"))
113+
include(dependency("com.atlassian.event:atlassian-event:.*"))
114+
include(dependency("io.atlassian.util.concurrent:atlassian-util-concurrent:.*"))
115+
include(dependency("io.atlassian.fugue:fugue:.*"))
116+
include(dependency("org.apache.httpcomponents:httpasyncclient:.*"))
117+
include(dependency("org.apache.httpcomponents:httpasyncclient-cache:.*"))
118+
include(dependency("org.apache.httpcomponents:httpclient:.*"))
119+
include(dependency("org.apache.httpcomponents:httpclient-cache:.*"))
120+
include(dependency("org.apache.httpcomponents:httpcore:.*"))
121+
include(dependency("org.apache.httpcomponents:httpcore-nio:.*"))
122+
include(dependency("org.apache.httpcomponents:httpcore-mime:.*"))
123+
include(dependency("org.glassfish.jersey.core:jersey-server:.*"))
124+
include(dependency("org.glassfish.jersey.core:jersey-common:.*"))
125+
include(dependency("jakarta.ws.rs:jakarta.ws.rs-api:.*"))
126+
//include(dependency("jakarta.annotation:jakarta.annotation-api:.*"))
127+
include(dependency("org.apache.tomcat:tomcat-annotations-api:.*"))
128+
include(dependency("org.glassfish.hk2.external:jakarta.inject:.*"))
129+
include(dependency("org.glassfish.hk2:osgi-resource-locator:.*"))
130+
include(dependency("org.glassfish.jaxb:jaxb-runtime:.*"))
116131
}
117132
}
118133

@@ -122,9 +137,9 @@ task plugin(type: Jar) {
122137
with jar
123138
}
124139
into('lib') {
125-
from configurations.compile
140+
from configurations.compileClasspath
126141
}
127-
extension('zip')
142+
archiveExtension.set('zip')
128143
}
129144

130145
task assemblePlugin(type: Copy) {

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=5.11.0
1+
version=5.12.1
22
description=EPAM Report portal. Jira Integration Plugin

gradle/wrapper/gradle-wrapper.jar

-14.8 KB
Binary file not shown.
+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#Mon Feb 17 14:41:54 MSK 2020
2-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
31
distributionBase=GRADLE_USER_HOME
42
distributionPath=wrapper/dists
5-
zipStorePath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)