@@ -19,7 +19,7 @@ repositories {
19
19
20
20
allprojects {
21
21
group = ' com.launchdarkly'
22
- version = " 2.0.1 "
22
+ version = " 2.0.2 "
23
23
sourceCompatibility = 1.7
24
24
targetCompatibility = 1.7
25
25
}
@@ -110,6 +110,40 @@ shadowJar {
110
110
exclude(" com.google.gson.internal.*" )
111
111
exclude(" com.google.gson.internal.bind.*" )
112
112
exclude(" com.google.gson.internal.bind.util.*" )
113
+ exclude(" com.google.gson.reflect.*" )
114
+ exclude(" com.google.gson.stream.*" )
115
+ }
116
+ relocate(' okhttp3' , ' com.launchdarkly.shaded.okhttp3' )
117
+ relocate(' okio' , ' com.launchdarkly.shaded.okio' )
118
+ relocate(' org' , ' com.launchdarkly.shaded.org' ) {
119
+ exclude(" org.slf4j.*" )
120
+ exclude(" org.slf4j.event.*" )
121
+ exclude(" org.slf4j.helpers.*" )
122
+ exclude(" org.slf4j.spi.*" )
123
+ }
124
+ relocate(' redis' , ' com.launchdarkly.shaded.redis' )
125
+
126
+ manifest {
127
+ attributes(" Implementation-Version" : version)
128
+ }
129
+ }
130
+
131
+ task shadowJarAll (type : com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar ) {
132
+ baseName = ' launchdarkly-client'
133
+ classifier = ' all'
134
+ group = " shadow"
135
+ description = " Builds a Shaded fat jar including SLF4J"
136
+ from(project. convention. getPlugin(JavaPluginConvention ). sourceSets. main. output)
137
+ configurations = [project. configurations. runtime]
138
+ exclude(' META-INF/INDEX.LIST' , ' META-INF/*.SF' , ' META-INF/*.DSA' , ' META-INF/*.RSA' )
139
+
140
+ // Shade all jars except for launchdarkly
141
+ relocate(' com' , ' com.launchdarkly.shaded.com' ) {
142
+ exclude(" com.launchdarkly.client.*" )
143
+ exclude(" com.google.gson.*" )
144
+ exclude(" com.google.gson.annotations.*" )
145
+ exclude(" com.google.gson.internal.*" )
146
+ exclude(" com.google.gson.internal.bind.*" )
113
147
exclude(" com.google.gson.internal.bind.util.*" )
114
148
exclude(" com.google.gson.reflect.*" )
115
149
exclude(" com.google.gson.stream.*" )
@@ -129,6 +163,10 @@ shadowJar {
129
163
}
130
164
}
131
165
166
+ artifacts {
167
+ archives shadowJarAll
168
+ }
169
+
132
170
test {
133
171
testLogging {
134
172
events " passed" , " skipped" , " failed" , " standardOut" , " standardError"
0 commit comments