File tree Expand file tree Collapse file tree 5 files changed +23
-20
lines changed Expand file tree Collapse file tree 5 files changed +23
-20
lines changed Original file line number Diff line number Diff line change 1
1
plugins {
2
- id ' java'
3
- id ' io.github.gradle-nexus.publish-plugin' version ' 1.1 .0'
2
+ id ' java-library '
3
+ id ' io.github.gradle-nexus.publish-plugin' version ' 2.0 .0'
4
4
id ' com.diffplug.spotless' version ' 6.25.0'
5
- id ' org.barfuin.gradle.jacocolog' version ' 2.0.0'
5
+ id ' org.barfuin.gradle.jacocolog' version ' 3.1.0'
6
+ id ' com.github.johnrengelman.shadow' version ' 8.1.1'
6
7
}
7
8
8
9
group = ' io.getstream'
13
14
toolchain {
14
15
languageVersion = JavaLanguageVersion . of(11 )
15
16
}
17
+
18
+ withJavadocJar()
19
+ withSourcesJar()
16
20
}
17
21
18
22
repositories {
@@ -99,4 +103,10 @@ task generateVersionProperties {
99
103
}
100
104
processResources. dependsOn generateVersionProperties
101
105
106
+ shadowJar {
107
+ enableRelocation true
108
+ relocationPrefix " shadowed"
109
+ mergeServiceFiles()
110
+ }
111
+
102
112
apply from : " publish.gradle"
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-7.3 -bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.4 -bin.zip
4
4
networkTimeout =10000
5
5
validateDistributionUrl =true
6
6
zipStoreBase =GRADLE_USER_HOME
Original file line number Diff line number Diff line change 55
55
# Darwin, MinGW, and NonStop.
56
56
#
57
57
# (3) This script is generated from the Groovy template
58
- # https://github.com/gradle/gradle/blob/HEAD/subprojects/ plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58
+ # https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/ plugins-application /src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
59
59
# within the Gradle project.
60
60
#
61
61
# You can find Gradle at https://github.com/gradle/gradle/.
Original file line number Diff line number Diff line change @@ -35,18 +35,9 @@ nexusPublishing {
35
35
}
36
36
}
37
37
38
- task javadocJar (type : Jar ) {
39
- classifier = ' javadoc'
40
- from javadoc
41
- }
42
-
43
- task sourcesJar (type : Jar ) {
44
- classifier = ' sources'
45
- from sourceSets. main. allSource
46
- }
47
-
48
- artifacts {
49
- archives javadocJar, sourcesJar
38
+ // to remove shadowed jar from the regular release publication
39
+ components. java. withVariantsFromConfiguration(configurations. shadowRuntimeElements) {
40
+ skip()
50
41
}
51
42
52
43
afterEvaluate {
@@ -56,9 +47,6 @@ afterEvaluate {
56
47
from components. java
57
48
artifactId ' stream-chat-java'
58
49
59
- artifact sourcesJar
60
- artifact javadocJar
61
-
62
50
pom {
63
51
name = " Stream Chat official Java API Client"
64
52
description = " Stream Chat Java Client for backend integrations"
@@ -83,6 +71,11 @@ afterEvaluate {
83
71
}
84
72
}
85
73
}
74
+
75
+ shadow(MavenPublication ) { publication ->
76
+ project. shadow. component(publication)
77
+ artifactId ' stream-chat-java-all'
78
+ }
86
79
}
87
80
}
88
81
}
You can’t perform that action at this time.
0 commit comments