Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

prepare 5.0.4 release #206

Merged
merged 888 commits into from
Sep 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
888 commits
Select commit Hold shift + click to select a range
1593396
Merge branch '5.x' into eb/ch73883/http-config-5.0
eli-darkly Apr 22, 2020
9b33f8c
Merge branch '5.x' into eb/ch73883/remove-old-http
eli-darkly Apr 22, 2020
bc4f545
Merge branch 'eb/ch73883/remove-old-http' into eb/ch73883/better-clie…
eli-darkly Apr 22, 2020
532126b
don't hold onto the LDConfig instance after creating the client
eli-darkly Apr 22, 2020
1e30cae
better documentation of client constructor, with singleton advice
eli-darkly Apr 22, 2020
331c7ee
copyedit
eli-darkly Apr 22, 2020
9ae3a87
Merge pull request #215 from launchdarkly/eb/ch65200/client-construct…
eli-darkly Apr 22, 2020
60e6256
Merge pull request #213 from launchdarkly/eb/ch73883/remove-old-http
eli-darkly Apr 22, 2020
c81deac
5.0: fix NPE from allFlagsState when there's a deleted flag
eli-darkly Apr 23, 2020
1f5eb8a
Merge pull request #216 from launchdarkly/eb/ch74709/all-flags-with-d…
eli-darkly Apr 23, 2020
2cb1101
Merge pull request #214 from launchdarkly/eb/ch73883/better-client-co…
eli-darkly Apr 23, 2020
f1f5d43
use non-nullable integers in EvaluationDetail and events
eli-darkly Apr 25, 2020
29d947e
minor readme updates
eli-darkly Apr 25, 2020
acae1ed
5.0: change build so Gson adapter is usable, improve packaging tests …
eli-darkly Apr 27, 2020
bbaede8
Merge branch '5.x' into eb/ch74915/non-null-variation
eli-darkly Apr 27, 2020
69619f3
Merge pull request #217 from launchdarkly/eb/ch74915/non-null-variation
eli-darkly Apr 28, 2020
5452b4f
(5.0 - #2) changes to support the Jackson adapter in java-sdk-common …
eli-darkly Apr 28, 2020
7753892
remove unnecessary Guava usage
eli-darkly Apr 29, 2020
ac0a86c
don't serialize -1 variation index in FeatureFlagsState
eli-darkly Apr 29, 2020
44dcb62
Merge pull request #219 from launchdarkly/eb/ch74915/fix-flags-state-…
eli-darkly Apr 29, 2020
87fd24f
Merge pull request #220 from launchdarkly/eb/ch62048/less-guava
eli-darkly Apr 29, 2020
4e0991e
use java-sdk-common 1.0.0-rc1
eli-darkly Apr 29, 2020
b1f70e9
use okhttp-eventsource 2.1.0
eli-darkly Apr 29, 2020
8f3b157
5.0.0-rc1
eli-darkly Apr 30, 2020
9812c3a
prepare 5.0.0-rc1 release (#191)
eli-darkly Apr 30, 2020
7655de5
Merge branch '5.x' of github.com:launchdarkly/java-server-sdk into 5.x
eli-darkly Apr 30, 2020
c08db30
use shared single-thread executor for most intermittent tasks
eli-darkly May 5, 2020
a46ea58
relax test app OSGi version constraints to support beta versions
eli-darkly May 5, 2020
da5cc46
simplify store status implementation to not use optional interface
eli-darkly May 5, 2020
a1f0fa6
on second thought, leave CacheStats where it was
eli-darkly May 6, 2020
5d5e3cb
Merge pull request #222 from launchdarkly/eb/ch75792/packaging-test-beta
eli-darkly May 6, 2020
bb8e9a4
Merge branch 'master' into 5.x
eli-darkly May 6, 2020
7675a93
javadoc fixes
eli-darkly May 6, 2020
8e823cc
further fix to packaging test for beta versions
eli-darkly May 6, 2020
836e9b7
Merge branch 'eb/ch75792/packaging-test-beta-2' into 5.x-osgi-fix
eli-darkly May 6, 2020
bcca8b7
rename DataStoreUpdates to DataSourceUpdates
eli-darkly May 6, 2020
560dd58
Merge pull request #224 from launchdarkly/eb/ch75792/packaging-test-b…
eli-darkly May 6, 2020
50ea5b0
Merge branch 'master' into 5.x-osgi-fix
eli-darkly May 6, 2020
ac75225
Merge branch '5.x' into eb/ch75777/shared-executor
eli-darkly May 6, 2020
b952c10
Merge branch 'eb/ch75777/shared-executor' into eb/ch75800/store-status
eli-darkly May 6, 2020
dd3fa31
Merge branch 'eb/ch75800/store-status' into eb/ch75800/store-status-u…
eli-darkly May 6, 2020
691354d
add a new DataStoreUpdates that's for the data store to use
eli-darkly May 6, 2020
f8f76da
implement data source status monitoring
eli-darkly May 6, 2020
d5a3284
typo
eli-darkly May 6, 2020
85db8f0
rm duplicate type
eli-darkly May 6, 2020
02cc39b
javadoc fixes
eli-darkly May 6, 2020
f8d5b20
better cleanup of scheduled tasks from shared executor
eli-darkly May 7, 2020
4b747cb
Merge branch 'eb/ch75777/shared-executor' into eb/ch75800/store-status
eli-darkly May 7, 2020
31594f0
Merge branch 'eb/ch75800/store-status' into eb/ch75800/store-status-u…
eli-darkly May 7, 2020
ae2bdc7
Merge branch 'eb/ch75800/store-status-updates-intf-1' into eb/ch75800…
eli-darkly May 7, 2020
bd29aca
Merge branch 'eb/ch75800/store-status-updates-intf-2' into eb/ch67913…
eli-darkly May 7, 2020
f9ed725
Merge pull request #221 from launchdarkly/eb/ch75777/shared-executor
eli-darkly May 8, 2020
88e7040
Merge pull request #223 from launchdarkly/eb/ch75800/store-status
eli-darkly May 8, 2020
d2c7dc0
Merge pull request #225 from launchdarkly/eb/ch75800/store-status-upd…
eli-darkly May 8, 2020
b3ad5d7
Merge pull request #226 from launchdarkly/eb/ch75800/store-status-upd…
eli-darkly May 8, 2020
27b50b5
typos
eli-darkly May 8, 2020
adf8cce
rename STARTING to INITIALIZING
eli-darkly May 8, 2020
ae5da18
(5.0, but not dependent on other PRs) allow configuration of worker t…
eli-darkly May 8, 2020
5d56e8d
set up initial JMH benchmarks
eli-darkly May 8, 2020
eb8f1df
Merge branch '5.x' into eb/ch67913/data-source-status
eli-darkly May 8, 2020
a45df89
CI fix
eli-darkly May 8, 2020
a13193f
save report file
eli-darkly May 8, 2020
0c50b7b
Merge branch 'eb/ch76240/benchmarks-4.x' into eb/ch76240/benchmarks-5.x
eli-darkly May 8, 2020
58bf660
adapt benchmarks to 5.0 API
eli-darkly May 8, 2020
94202d3
benchmarks need Gson in order to use shared test code
eli-darkly May 8, 2020
fecff19
decouple event HTTP logic from event processing
eli-darkly May 9, 2020
a3409c2
Merge branch 'eb/ch76308/event-sender' into eb/ch76308/event-sender-5.x
eli-darkly May 9, 2020
8822060
add end-to-end test for events
eli-darkly May 9, 2020
d9aab4b
Merge branch 'eb/ch76308/event-sender' into eb/ch76308/event-sender-5.x
eli-darkly May 10, 2020
2349290
javadoc fixes
eli-darkly May 11, 2020
c9ece43
minor PR feedback
eli-darkly May 11, 2020
9690842
make DataSourceUpdatesImpl responsible for detecting store failures; …
eli-darkly May 12, 2020
1398c7c
Merge pull request #227 from launchdarkly/eb/ch67913/data-source-status
eli-darkly May 12, 2020
d6c90d1
(#7) implement time-dependent escalation of data source error logging…
eli-darkly May 12, 2020
d207958
Merge branch '5.x' into eb/ch76308/event-sender-5.x
eli-darkly May 12, 2020
40d45fa
fix swapped log levels
eli-darkly May 12, 2020
6bd5afe
better synchronization usage
eli-darkly May 12, 2020
fcd9631
don't need to wait 1 second during tests
eli-darkly May 12, 2020
de0831d
Merge pull request #230 from launchdarkly/eb/ch76308/event-sender
eli-darkly May 12, 2020
0231669
Merge branch 'master' into eb/ch76308/event-sender-5.x
eli-darkly May 12, 2020
8a9d9dd
make events URI construction reliable regardless of whether base URI …
eli-darkly May 13, 2020
f516bf0
Merge pull request #231 from launchdarkly/eb/ch76308/event-sender-bas…
eli-darkly May 13, 2020
8b06363
Merge branch 'master' into eb/ch76308/event-sender-5.x
eli-darkly May 13, 2020
d1456e9
merge from public after release
LaunchDarklyCI May 13, 2020
142846d
Merge branch 'master' into 5.x
eli-darkly May 13, 2020
6718e4c
prepare 5.0.0-rc2 release (#194)
eli-darkly May 14, 2020
a3c25f4
Merge branch '5.x' of github.com:launchdarkly/java-server-sdk into 5.x
eli-darkly May 14, 2020
e8621a2
typo
eli-darkly May 14, 2020
c5340c8
typo
eli-darkly May 15, 2020
6035ee1
add DataSourceStatusProvider.waitFor()
eli-darkly May 15, 2020
60e1825
comment fix
eli-darkly May 15, 2020
88fa2e0
typo
eli-darkly May 15, 2020
c32bebd
rm debugging
eli-darkly May 15, 2020
74c0828
improve comments
eli-darkly May 16, 2020
bc09057
fix race condition in LDClientEndToEndTest
eli-darkly May 19, 2020
34ecff9
Merge pull request #233 from launchdarkly/eb/ch76308/diagnostic-event…
eli-darkly May 19, 2020
fd1178d
Merge branch 'master' into 5.x
eli-darkly May 19, 2020
a61e287
Merge branch '5.x' into eb/ch76894/wait-for-status
eli-darkly May 19, 2020
2106219
move flag change stuff into FlagTracker facade, simplify value listener
eli-darkly May 19, 2020
bad0ea8
Merge pull request #232 from launchdarkly/eb/ch76894/wait-for-status
eli-darkly May 19, 2020
cbd309a
move LDClientInterface into interfaces package and rename initialized…
eli-darkly May 19, 2020
6247e76
Merge branch 'master' into eb/ch76240/benchmarks-4.x
eli-darkly May 19, 2020
ab99c82
more benchmark implementation
eli-darkly May 19, 2020
70da524
Merge branch '5.x' into eb/ch76240/benchmarks-5.x
eli-darkly May 19, 2020
eb74a92
port some more benchmarks from 4.x
eli-darkly May 19, 2020
d353873
Merge pull request #235 from launchdarkly/eb/ch59586/client-interface
eli-darkly May 20, 2020
ffda80a
Merge branch '5.x' into eb/ch25268/flag-tracker
eli-darkly May 20, 2020
223e038
fix merge conflict
eli-darkly May 20, 2020
4cdb376
preprocess various things to speed up evaluations
eli-darkly May 22, 2020
d97a5bc
(5.0) don't bother creating event objects if they won't be sent
eli-darkly May 22, 2020
b56d541
cleaner EventFactory design
eli-darkly May 22, 2020
7515cf8
add test coverage step to CI
eli-darkly May 22, 2020
6132374
add test coverage reporting + improve DefaultEventProcessor tests
eli-darkly May 22, 2020
436ec07
clarify meaning of "events" in javadoc comment
eli-darkly May 22, 2020
d50f669
Merge pull request #234 from launchdarkly/eb/ch25268/flag-tracker
eli-darkly May 22, 2020
631d872
note about benchmarks in CONTRIBUTING
eli-darkly May 22, 2020
a1de46c
rm unused
eli-darkly May 23, 2020
5a1e237
Merge branch '5.x' into eb/ch76240/benchmarks-5.x
eli-darkly May 23, 2020
5e19ff6
Merge branch 'eb/ch76240/benchmarks-4.x' into eb/ch76240/benchmarks-5.x
eli-darkly May 23, 2020
6565ccc
formatting
eli-darkly May 23, 2020
2a8a284
Merge branch 'eb/ch76240/benchmarks-4.x' into eb/ch76240/benchmarks-5.x
eli-darkly May 23, 2020
87163c7
use JMH average time mode, not throughput
eli-darkly May 23, 2020
0358ae9
measure in nanoseconds
eli-darkly May 23, 2020
035ff29
fix import
eli-darkly May 23, 2020
0946574
Merge branch 'eb/ch76240/benchmarks-4.x' into eb/ch76240/benchmarks-5.x
eli-darkly May 23, 2020
4f8273f
move benchmark code to 5.0-like packages for easier cross-comparison
eli-darkly May 23, 2020
6f08081
Merge branch 'eb/ch76240/benchmarks-4.x' into eb/ch76240/benchmarks-5.x
eli-darkly May 23, 2020
c84cda9
move test data generation out of benchmarks
eli-darkly May 23, 2020
846976c
more configuration tweaks
eli-darkly May 23, 2020
338947c
show more benchmark output
eli-darkly May 23, 2020
db5dc8c
show more benchmark output
eli-darkly May 23, 2020
37e88c6
Merge branch 'eb/ch76240/benchmarks-4.x' into eb/ch76240/benchmarks-5.x
eli-darkly May 23, 2020
a45bcd9
fix event benchmark synchronization
eli-darkly May 23, 2020
080c599
add jmhReport HTML output
eli-darkly May 23, 2020
d80d245
fix report step
eli-darkly May 23, 2020
4832b76
fix synchronization again
eli-darkly May 23, 2020
2bd5a37
fix event benchmarks so they don't test the construction of the input…
eli-darkly May 23, 2020
0815938
Merge branch 'eb/ch76240/benchmarks-4.x' into eb/ch76240/benchmarks-4…
eli-darkly May 23, 2020
0cefb4e
fix data file name
eli-darkly May 23, 2020
e2be6e9
Merge branch 'eb/ch76240/benchmarks-4.x' into eb/ch76240/benchmarks-5.x
eli-darkly May 23, 2020
c52418f
Merge branch 'eb/ch76240/benchmarks-4.x' into eb/ch76240/benchmarks-5.x
eli-darkly May 23, 2020
d184426
Merge branch '5.x' into eb/ch77594/coverage
eli-darkly May 23, 2020
58d1e12
Merge branch '5.x' into eb/ch77442/preprocessing
eli-darkly May 23, 2020
f6961fa
Merge branch 'eb/ch77442/preprocessing' into eb/ch77571/no-events
eli-darkly May 23, 2020
4c47222
Merge branch 'eb/ch77571/no-events' into eb/ch77594/coverage
eli-darkly May 23, 2020
26575df
CI fix (always store test results)
eli-darkly May 23, 2020
1986569
improve test coverage of low-level eval logic to >99%
eli-darkly May 23, 2020
e6e37a5
revert change to flush payload queue behavior
eli-darkly May 23, 2020
ab43703
avoid test race condition
eli-darkly May 23, 2020
d264569
Merge branch 'eb/ch77594/coverage' into eb/ch77594/coverage-2-eval
eli-darkly May 23, 2020
a9b6c81
add test coverage reporting
eli-darkly May 23, 2020
38a4922
CI fix
eli-darkly May 23, 2020
4e3eee3
CI fix
eli-darkly May 23, 2020
051a9d5
Merge branch 'eb/ch77594/coverage-0' into eb/ch77594/coverage-1-events
eli-darkly May 23, 2020
4b85a3f
more event test improvements
eli-darkly May 23, 2020
b898d81
misc cleanup + test improvements
eli-darkly May 23, 2020
ca2e196
Merge branch 'eb/ch77594/coverage-1-events' into eb/ch77594/coverage-…
eli-darkly May 23, 2020
60046ef
misc cleanup + test improvements
eli-darkly May 23, 2020
0f898fa
make intVariation and doubleVariation non-nullable
eli-darkly May 23, 2020
3b0e95b
(5.0) don't use jar magic to find out our own version string
eli-darkly May 23, 2020
f6b7ff2
fix test
eli-darkly May 23, 2020
3fb019f
Merge branch 'eb/ch77594-ch77639/coverage-3-client' into eb/ch77640/v…
eli-darkly May 23, 2020
b3f313c
make intVariation and doubleVariation non-nullable
eli-darkly May 23, 2020
38dacc8
Merge branch 'eb/ch77639/int-double-non-null' into eb/ch77640/version…
eli-darkly May 23, 2020
472dfc7
better unit test coverage of LDClient and FeatureFlagsState
eli-darkly May 23, 2020
3ccd7cb
test coverage improvements + minor fixes
eli-darkly May 24, 2020
7c75b3a
better temp file handling in file data source tests
eli-darkly May 24, 2020
8da3e27
revert file data source implementation change for now
eli-darkly May 24, 2020
306797e
revert unnecessary change
eli-darkly May 24, 2020
e07643f
comment about file watching on Mac
eli-darkly May 24, 2020
1d57156
add slight delay to avoid timing-dependent test flakiness
eli-darkly May 26, 2020
3fad450
test fixes/comments
eli-darkly May 26, 2020
07bb8f5
(5.0) use simpler and more stable logger names
eli-darkly May 26, 2020
2d0628d
better instructions
eli-darkly May 27, 2020
427a87e
more convenient way to set EventSource logger name
eli-darkly May 27, 2020
a89504e
(5.0) add HTTP default headers method + some component refactoring
eli-darkly May 28, 2020
6ce1d8a
don't need to pass the whole config object to describeConfiguration()
eli-darkly May 28, 2020
5d54f0a
simplify test logic for HTTP headers
eli-darkly May 28, 2020
29cf2d7
Merge pull request #236 from launchdarkly/eb/ch77442/preprocessing
eli-darkly May 28, 2020
e336c92
Merge pull request #237 from launchdarkly/eb/ch77571/no-events
eli-darkly May 28, 2020
86050fb
Merge pull request #240 from launchdarkly/eb/ch77594/coverage-0
eli-darkly May 28, 2020
ec01e5b
Merge branch '5.x' into eb/ch76240/benchmarks-5.x
eli-darkly May 28, 2020
c36c6f3
Merge pull request #241 from launchdarkly/eb/ch77594/coverage-1-events
eli-darkly May 29, 2020
bd2162e
Merge pull request #242 from launchdarkly/eb/ch77594/coverage-2-eval
eli-darkly May 29, 2020
daf04c4
Merge pull request #243 from launchdarkly/eb/ch77639/int-double-non-null
eli-darkly May 29, 2020
2719973
Merge pull request #244 from launchdarkly/eb/ch77640/version-string
eli-darkly May 29, 2020
8b24c81
(5.0) final test coverage improvements, for now, with enforcement
eli-darkly May 29, 2020
55f14d1
re-simplify DataBuilder
eli-darkly May 29, 2020
3df7da4
increase timeouts
eli-darkly May 29, 2020
6fc2a7a
misc fixes
eli-darkly May 29, 2020
8b27de5
rm unnecessary override
eli-darkly May 29, 2020
262eb19
Merge branch '5.x' into eb/ch76240/benchmarks-5.x
eli-darkly May 29, 2020
43778a3
indents
eli-darkly May 29, 2020
128b8cc
Merge pull request #245 from launchdarkly/eb/ch77594/coverage-3-client
eli-darkly May 29, 2020
b959c6c
Merge pull request #238 from launchdarkly/eb/ch76240/benchmarks-4.x
eli-darkly May 29, 2020
279ccd5
Merge pull request #239 from launchdarkly/eb/ch76240/benchmarks-5.x
eli-darkly May 29, 2020
6ddb11b
Merge branch 'master' into 5.x
eli-darkly May 29, 2020
37fbfe5
Merge branch '5.x' into eb/ch76203/logger-names
eli-darkly May 29, 2020
fc3d40e
Merge branch '5.x' into eb/ch77594/coverage-4-misc
eli-darkly May 29, 2020
4df1c40
Merge branch 'eb/ch77594/coverage-4-misc' into eb/ch78049/http-headers
eli-darkly May 29, 2020
dbe962f
update benchmark code for API change
eli-darkly May 29, 2020
8b74838
Merge branch 'eb/ch78049/http-headers' into eb/ch77594/coverage-5-misc
eli-darkly May 29, 2020
4b00cde
Merge pull request #246 from launchdarkly/eb/ch77594/coverage-4-misc
eli-darkly May 29, 2020
73062ca
support loading file data from a classpath resource
eli-darkly May 30, 2020
f02f835
update metadata so Releaser knows about 4.x branch
eli-darkly May 30, 2020
9dfc1be
Merge branch '4.x' into 5.x
eli-darkly May 30, 2020
4a3a7fb
minor test fixes
eli-darkly May 30, 2020
0fbd4b0
make class final
eli-darkly May 30, 2020
91941fa
rm beta changelog items
eli-darkly May 30, 2020
851c53b
Merge branch 'eb/debugging'
eli-darkly May 30, 2020
907882d
more info about coverage in CONTRIBUTING.md
eli-darkly Jun 1, 2020
7165ca4
Merge pull request #248 from launchdarkly/eb/ch78049/http-headers
eli-darkly Jun 1, 2020
79d11bf
Merge branch 'master' into eb/ch76203/logger-names
eli-darkly Jun 2, 2020
234e905
Merge pull request #247 from launchdarkly/eb/ch76203/logger-names
eli-darkly Jun 2, 2020
75630d0
Merge branch 'master' into eb/ch77594/coverage-5-misc
eli-darkly Jun 2, 2020
1eabb73
Merge branch 'eb/ch77594/coverage-5-misc' into eb/ch76824/classpath-file
eli-darkly Jun 2, 2020
01df1f3
Merge pull request #249 from launchdarkly/eb/ch77594/coverage-5-misc
eli-darkly Jun 2, 2020
ff3d3d1
Merge pull request #250 from launchdarkly/eb/ch76824/classpath-file
eli-darkly Jun 2, 2020
705d25b
use java-sdk-common 1.0.0
eli-darkly Jun 2, 2020
2a44530
use okhttp-eventsource 2.3.0
eli-darkly Jun 2, 2020
9d23a88
Merge branch 'master' of github.com:launchdarkly/java-server-sdk
eli-darkly Jun 2, 2020
ddd886a
use okhttp-eventsource 2.3.1 for thread fix
eli-darkly Jun 18, 2020
6374424
Merge pull request #252 from launchdarkly/eb/ch80009/eventsource-thread
eli-darkly Jun 19, 2020
6fb600d
fix flaky tests due to change in EventSource error reporting
eli-darkly Jun 19, 2020
e22d43f
Merge pull request #253 from launchdarkly/eb/ch80009/flaky-test
eli-darkly Jun 19, 2020
8642c8b
merge from public after release
LaunchDarklyCI Jun 19, 2020
8873f44
remove support for indirect put and indirect patch
eli-darkly Jun 23, 2020
9a034e2
Merge pull request #254 from launchdarkly/eb/ch80666/no-indirect-patch
eli-darkly Jun 23, 2020
0293f58
fix typo in javadoc example code
eli-darkly Jun 24, 2020
8a08fc7
Merge pull request #255 from launchdarkly/eb/ch80837/javadoc-typo
eli-darkly Jun 24, 2020
4ad9351
clean up polling logic, fix status updating after an outage, don't re…
eli-darkly Jun 25, 2020
f14119a
merge from public after release
LaunchDarklyCI Jun 25, 2020
378b8e8
avoid NPEs if LDUser was deserialized by Gson (#257)
eli-darkly Aug 4, 2020
4836ea3
fix release metadata
eli-darkly Aug 5, 2020
96e58e7
prepare 4.14.1 release (#200)
LaunchDarklyCI Aug 5, 2020
22149a9
Releasing version 4.14.1
LaunchDarklyCI Aug 5, 2020
2d0d5cd
merge from public after release
LaunchDarklyCI Aug 5, 2020
ef8a801
Merge branch '4.x'
eli-darkly Aug 5, 2020
8825a48
exclude Kotlin metadata from jar + fix misc Gradle problems
eli-darkly Aug 18, 2020
ae46e03
Merge pull request #258 from launchdarkly/eb/ch87032/kotlin-symbols
eli-darkly Aug 18, 2020
b7ce928
merge from public after release
LaunchDarklyCI Aug 19, 2020
b32abc3
update CI and Gradle to test with newer JDKs (#259)
eli-darkly Aug 24, 2020
eefc460
update okhttp to 3.14.9 (fixes incompatibility with OpenJDK 8.0.252)
eli-darkly Aug 31, 2020
87120a4
Merge pull request #260 from launchdarkly/eb/ch88298/okhttp-update-4.x
eli-darkly Sep 1, 2020
0403392
prepare 4.14.2 release (#205)
LaunchDarklyCI Sep 1, 2020
2daeb92
Releasing version 4.14.2
LaunchDarklyCI Sep 1, 2020
7c09c6a
merge from public after release
LaunchDarklyCI Sep 1, 2020
7a9772c
Merge branch '4.x'
eli-darkly Sep 1, 2020
f3f01ec
update okhttp to 4.8.1 (fixes incompatibility with OpenJDK 8.0.252)
eli-darkly Sep 1, 2020
7025ae7
Merge pull request #261 from launchdarkly/eb/ch88298/okhttp-update-5.x
eli-darkly Sep 1, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ workflows:
- test-linux:
name: Java 11 - Linux - OpenJDK
docker-image: circleci/openjdk:11
requires:
- build-linux
- test-linux:
name: Java 13 - Linux - OpenJDK
docker-image: circleci/openjdk:13-jdk-buster
requires:
- build-linux
- test-linux:
name: Java 14 - Linux - OpenJDK
docker-image: circleci/openjdk:14-jdk-buster
with-coverage: true
requires:
- build-linux
Expand Down
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ All notable changes to the LaunchDarkly Java SDK will be documented in this file
- In polling mode, temporary files used for HTTP caching (in the system temporary directory) were not being cleaned up when the client was closed.
- Fixed incorrect sample code in the documentation comment for `FlagValueChangeListener`.


## [5.0.1] - 2020-06-19
### Fixed:
- Fixed a bug that could cause worker threads for the EventSource stream to persist after closing the client, if the client had shut down the stream due to detecting an invalid SDK key.
Expand Down Expand Up @@ -72,6 +71,10 @@ This is a major rewrite that introduces a cleaner API design, adds new features,
- The Redis integration is no longer built into the main SDK library. See: https://github.com/launchdarkly/java-server-sdk-redis
- The deprecated New Relic integration has been removed.

## [4.14.2] - 2020-09-01
### Fixed:
- Updated the version of OkHttp contained within the SDK from 3.12.10 to 3.14.9, to address multiple [known issues](https://square.github.io/okhttp/changelog_3x/) including an incompatibility with OpenJDK 8.0.252 under some conditions. ([#204](https://github.com/launchdarkly/java-server-sdk/issues/204))

## [4.14.1] - 2020-08-04
### Fixed:
- Deserializing `LDUser` from JSON using Gson resulted in an object that had nulls in some fields where nulls were not expected, which could cause null pointer exceptions later. While there was no defined behavior for deserializing users in the 4.x SDK (it is supported in 5.0 and above), it was simple to fix. Results of deserializing with any other JSON framework are undefined. ([#199](https://github.com/launchdarkly/java-server-sdk/issues/199))
Expand Down
6 changes: 4 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ ext.versions = [
"guava": "28.2-jre",
"jackson": "2.10.0",
"launchdarklyJavaSdkCommon": "1.0.0",
"okhttp": "4.8.1", // specify this for the SDK build instead of relying on the transitive dependency from okhttp-eventsource
"okhttpEventsource": "2.3.1",
"slf4j": "1.7.21",
"snakeyaml": "1.19",
Expand All @@ -87,6 +88,7 @@ libraries.internal = [
"commons-codec:commons-codec:${versions.commonsCodec}",
"com.google.code.gson:gson:${versions.gson}",
"com.google.guava:guava:${versions.guava}",
"com.squareup.okhttp3:okhttp:${versions.okhttp}",
"com.launchdarkly:okhttp-eventsource:${versions.okhttpEventsource}",
"org.yaml:snakeyaml:${versions.snakeyaml}",
]
Expand All @@ -100,8 +102,8 @@ libraries.external = [
// Add dependencies to "libraries.test" that are used only in unit tests.
libraries.test = [
// Note that the okhttp3 test deps must be kept in sync with the okhttp version used in okhttp-eventsource
"com.squareup.okhttp3:mockwebserver:4.5.0",
"com.squareup.okhttp3:okhttp-tls:4.5.0",
"com.squareup.okhttp3:mockwebserver:${versions.okhttp}",
"com.squareup.okhttp3:okhttp-tls:${versions.okhttp}",
"org.hamcrest:hamcrest-all:1.3",
"org.easymock:easymock:3.4",
"junit:junit:4.12",
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
51 changes: 31 additions & 20 deletions gradlew
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
#!/usr/bin/env sh

#
# Copyright 2015 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

##############################################################################
##
## Gradle start up script for UN*X
Expand Down Expand Up @@ -28,7 +44,7 @@ APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
Expand Down Expand Up @@ -109,8 +125,8 @@ if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi

# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
# For Cygwin or MSYS, switch paths to Windows format before running java
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
Expand Down Expand Up @@ -138,19 +154,19 @@ if $cygwin ; then
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
i=`expr $i + 1`
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
0) set -- ;;
1) set -- "$args0" ;;
2) set -- "$args0" "$args1" ;;
3) set -- "$args0" "$args1" "$args2" ;;
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi

Expand All @@ -159,14 +175,9 @@ save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=$(save "$@")
APP_ARGS=`save "$@"`

# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"

# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
fi

exec "$JAVACMD" "$@"
21 changes: 20 additions & 1 deletion gradlew.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem

@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
Expand All @@ -13,8 +29,11 @@ if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
Expand Down