15
15
*/
16
16
17
17
/* *******************************/
18
- /* gradleVersion = '8.10.2 ' */
18
+ /* gradleVersion = '8.12.1 ' */
19
19
/* *******************************/
20
20
21
21
plugins {
22
22
id " com.github.johnrengelman.shadow" version " 8.1.1"
23
- id " com.github.spotbugs" version " 5.2.1"
24
- id " io.codearte.nexus-staging" version " 0.30.0"
25
- id " de.marcphilipp.nexus-publish" version " 0.4.0"
23
+ id " com.github.spotbugs" version " 6.1.3"
24
+ id " io.github.gradle-nexus.publish-plugin" version " 2.0.0"
26
25
id " com.diffplug.spotless" version " 6.13.0"
27
26
}
28
27
29
28
/*
30
29
* Root project definitions
31
30
*/
32
- apply plugin : ' io.codearte.nexus-staging'
33
- apply plugin : " de.marcphilipp.nexus-publish"
31
+ apply plugin : ' io.github.gradle-nexus.publish-plugin'
34
32
35
33
allprojects {
36
34
group = ' io.minio'
@@ -52,14 +50,14 @@ subprojects {
52
50
53
51
dependencies {
54
52
api " com.carrotsearch.thirdparty:simple-xml-safe:2.7.1"
55
- api " com.google.guava:guava:33.3.1 -jre"
53
+ api " com.google.guava:guava:33.4.0 -jre"
56
54
api " com.squareup.okhttp3:okhttp:4.12.0"
57
- api " com.fasterxml.jackson.core:jackson-annotations:2.18.0 "
58
- api " com.fasterxml.jackson.core:jackson-core:2.18.0 "
59
- api " com.fasterxml.jackson.core:jackson-databind:2.18.0 "
60
- api " org.bouncycastle:bcprov-jdk18on:1.78.1 "
55
+ api " com.fasterxml.jackson.core:jackson-annotations:2.18.2 "
56
+ api " com.fasterxml.jackson.core:jackson-core:2.18.2 "
57
+ api " com.fasterxml.jackson.core:jackson-databind:2.18.2 "
58
+ api " org.bouncycastle:bcprov-jdk18on:1.80 "
61
59
api " org.apache.commons:commons-compress:1.27.1"
62
- api " commons-codec:commons-codec:1.17.1 "
60
+ api " commons-codec:commons-codec:1.18.0 "
63
61
api " org.xerial.snappy:snappy-java:1.1.10.7"
64
62
compileOnly " com.github.spotbugs:spotbugs-annotations:4.8.6"
65
63
@@ -74,8 +72,8 @@ subprojects {
74
72
}
75
73
76
74
spotbugs {
77
- effort = " max "
78
- reportLevel = " low "
75
+ effort = com.github.spotbugs.snom.Effort . MAX
76
+ reportLevel = com.github.spotbugs.snom.Confidence . values()[ 0 ]
79
77
excludeFilter = file(" $rootDir /spotbugs-filter.xml" )
80
78
}
81
79
@@ -93,9 +91,9 @@ subprojects {
93
91
// Show stacktrace on test failure than opening in web browser.
94
92
testLogging {
95
93
exceptionFormat = ' full'
96
- showExceptions true
97
- showCauses true
98
- showStackTraces true
94
+ showExceptions = true
95
+ showCauses = true
96
+ showStackTraces = true
99
97
}
100
98
}
101
99
@@ -104,13 +102,16 @@ subprojects {
104
102
System . setProperty(' user.language' , ' de' )
105
103
System . setProperty(' user.country' , ' DE' )
106
104
systemProperties = System . properties
105
+ classpath = testing. suites. test. sources. runtimeClasspath
107
106
dependsOn test
108
107
}
109
108
110
109
check. dependsOn localeTest
111
110
112
- sourceCompatibility = JavaVersion . VERSION_1_8
113
- targetCompatibility = JavaVersion . VERSION_1_8
111
+ java {
112
+ sourceCompatibility = JavaVersion . VERSION_1_8
113
+ targetCompatibility = JavaVersion . VERSION_1_8
114
+ }
114
115
115
116
spotless {
116
117
java {
@@ -130,13 +131,14 @@ project(':api') {
130
131
apply plugin : ' maven-publish'
131
132
apply plugin : ' signing'
132
133
apply plugin : ' com.github.johnrengelman.shadow'
133
- apply plugin : " de.marcphilipp.nexus-publish"
134
134
135
- archivesBaseName = ' minio'
135
+ base {
136
+ archivesName = ' minio'
137
+ }
136
138
137
139
jar {
138
140
manifest {
139
- attributes(' Implementation-Title' : archivesBaseName ,
141
+ attributes(' Implementation-Title' : base . archivesName ,
140
142
' Implementation-Version' : archiveVersion. get(),
141
143
' Built-By' : ' MinIO, inc' ,
142
144
' Built-JDK' : System . getProperty(' java.version' ),
@@ -175,7 +177,7 @@ project(':api') {
175
177
publishing {
176
178
publications {
177
179
mavenJava(MavenPublication ) {
178
- artifactId archivesBaseName
180
+ artifactId = base . archivesName
179
181
from components. java
180
182
pom {
181
183
name = ' minio'
@@ -215,16 +217,11 @@ project(':api') {
215
217
}
216
218
}
217
219
218
- nexusStaging {
219
- packageGroup = group
220
- stagingProfileId = ' 9b746c9f8abc1'
221
- username = project. properties[' nexusUsername' ]
222
- password = project. properties[' nexusPassword' ]
223
- }
224
-
225
220
nexusPublishing {
221
+ packageGroup = group
226
222
repositories {
227
223
sonatype {
224
+ stagingProfileId = ' 9b746c9f8abc1'
228
225
username = project. properties[' nexusUsername' ]
229
226
password = project. properties[' nexusPassword' ]
230
227
}
@@ -237,19 +234,21 @@ project(':adminapi') {
237
234
apply plugin : ' maven-publish'
238
235
apply plugin : ' signing'
239
236
apply plugin : ' com.github.johnrengelman.shadow'
240
- apply plugin : " de.marcphilipp.nexus-publish "
237
+ apply plugin : ' base '
241
238
242
- archivesBaseName = ' minio-admin'
239
+ base {
240
+ archivesName = ' minio-admin'
241
+ }
243
242
244
243
dependencies {
245
244
api project(' :api' )
246
- api " com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.0 "
245
+ api " com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.2 "
247
246
testImplementation project(' :api' )
248
247
}
249
248
250
249
jar {
251
250
manifest {
252
- attributes(' Implementation-Title' : archivesBaseName ,
251
+ attributes(' Implementation-Title' : base . archivesName ,
253
252
' Implementation-Version' : archiveVersion. get(),
254
253
' Built-By' : ' MinIO, inc' ,
255
254
' Built-JDK' : System . getProperty(' java.version' ),
@@ -288,7 +287,7 @@ project(':adminapi') {
288
287
publishing {
289
288
publications {
290
289
mavenJava(MavenPublication ) {
291
- artifactId archivesBaseName
290
+ artifactId = base . archivesName
292
291
from components. java
293
292
pom {
294
293
name = ' minio'
@@ -328,20 +327,8 @@ project(':adminapi') {
328
327
}
329
328
}
330
329
331
- nexusStaging {
332
- packageGroup = group
333
- stagingProfileId = ' 9b746c9f8abc1'
334
- username = project. properties[' nexusUsername' ]
335
- password = project. properties[' nexusPassword' ]
336
- }
337
-
338
330
nexusPublishing {
339
- repositories {
340
- sonatype {
341
- username = project. properties[' nexusUsername' ]
342
- password = project. properties[' nexusPassword' ]
343
- }
344
- }
331
+ packageGroup = group
345
332
}
346
333
}
347
334
@@ -385,7 +372,7 @@ project(':functional') {
385
372
386
373
task runFunctionalTest(type :JavaExec ) {
387
374
mainClass = ' FunctionalTest'
388
- classpath = sourceSets . main . runtimeClasspath
375
+ classpath = testing . suites . test . sources . runtimeClasspath
389
376
390
377
ext. endpoint = ' https://play.min.io:9000'
391
378
if (rootProject. hasProperty(' endpoint' )) {
0 commit comments