@@ -19,7 +19,7 @@ repositories {
1919
2020allprojects {
2121 group = ' com.launchdarkly'
22- version = " 2.0.1 "
22+ version = " 2.0.2 "
2323 sourceCompatibility = 1.7
2424 targetCompatibility = 1.7
2525}
@@ -110,6 +110,40 @@ shadowJar {
110110 exclude(" com.google.gson.internal.*" )
111111 exclude(" com.google.gson.internal.bind.*" )
112112 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.*" )
113147 exclude(" com.google.gson.internal.bind.util.*" )
114148 exclude(" com.google.gson.reflect.*" )
115149 exclude(" com.google.gson.stream.*" )
@@ -129,6 +163,10 @@ shadowJar {
129163 }
130164}
131165
166+ artifacts {
167+ archives shadowJarAll
168+ }
169+
132170test {
133171 testLogging {
134172 events " passed" , " skipped" , " failed" , " standardOut" , " standardError"
0 commit comments