1
1
plugins {
2
- id " io.spring.dependency-management" version " 1.0.9.RELEASE "
2
+ id " io.spring.dependency-management" version " 1.1.4 "
3
3
id ' java'
4
4
id ' jacoco'
5
5
}
@@ -17,7 +17,6 @@ def scriptsUrl = 'https://raw.githubusercontent.com/reportportal/gradle-scripts/
17
17
18
18
apply from : scriptsUrl + ' /release-fat.gradle'
19
19
apply from : scriptsUrl + ' /signing.gradle'
20
- apply from : scriptsUrl + ' /build-quality.gradle'
21
20
22
21
repositories {
23
22
maven { url " https://m2proxy.atlassian.com/repository/public" }
@@ -30,40 +29,42 @@ repositories {
30
29
31
30
dependencyManagement {
32
31
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 ' )
34
33
}
35
34
}
36
35
37
- sourceCompatibility = JavaVersion . VERSION_11
38
- targetCompatibility = JavaVersion . VERSION_11
36
+ java {
37
+ sourceCompatibility = JavaVersion . VERSION_21
38
+ targetCompatibility = JavaVersion . VERSION_21
39
+ }
39
40
40
41
dependencies {
41
42
if (releaseMode) {
42
43
implementation ' com.epam.reportportal:commons-dao'
43
44
implementation ' com.epam.reportportal:plugin-api'
44
45
annotationProcessor ' com.epam.reportportal:plugin-api'
45
46
} 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 '
49
50
}
50
51
implementation ' org.hibernate:hibernate-core:5.6.15.Final'
51
52
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'
54
55
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'
57
58
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'
60
61
61
- compile ' org.apache.tika:tika-core:1.14'
62
+ implementation ' org.apache.tika:tika-core:1.14'
62
63
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'
67
68
}
68
69
69
70
artifacts {
@@ -73,23 +74,23 @@ artifacts {
73
74
test {
74
75
jacocoTestReport {
75
76
reports {
76
- xml. enabled true
77
+ xml. required = true
77
78
}
78
79
}
79
80
}
80
81
81
82
build. dependsOn jacocoTestReport
82
83
83
84
wrapper {
84
- gradleVersion = ' 5.4.1 '
85
+ gradleVersion = ' 8.10.2 '
85
86
}
86
87
87
88
generatePomFileForShadowPublication { pom. packaging = " jar" }
88
89
89
90
jar {
90
91
manifest {
91
92
attributes(
92
- " Class-Path" : configurations. compile . collect { it. getName() }. join(' ' ),
93
+ " Class-Path" : configurations. compileClasspath . collect { it. getName() }. join(' ' ),
93
94
" Plugin-Id" : " ${ pluginID} " ,
94
95
" Plugin-Version" : " ${ project.version} " ,
95
96
" Plugin-Provider" : " Andrei Varabyeu" ,
@@ -101,18 +102,32 @@ jar {
101
102
}
102
103
103
104
shadowJar {
104
- archiveClassifier. set(null )
105
- configurations = [project. configurations. compile]
105
+ configurations = [project. configurations. compileClasspath]
106
106
zip64 true
107
107
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:.*" ))
116
131
}
117
132
}
118
133
@@ -122,9 +137,9 @@ task plugin(type: Jar) {
122
137
with jar
123
138
}
124
139
into(' lib' ) {
125
- from configurations. compile
140
+ from configurations. compileClasspath
126
141
}
127
- extension (' zip' )
142
+ archiveExtension . set (' zip' )
128
143
}
129
144
130
145
task assemblePlugin (type : Copy ) {
0 commit comments