1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-12 10:23:16 +03:00

51 Commits

Author SHA1 Message Date
Jesse Wilson
cad304afe7 Fix native image tests' build (#8811)
* Fix native image tests' build

They need friendsImplementation to test internal APIs

* Also fix the package name

---------

Co-authored-by: Jesse Wilson <jwilson@squareup.com>
2025-05-27 17:44:11 -04:00
Jesse Wilson
e9db9cc56b Don't use uppercase letters in package names (#8790) 2025-05-22 10:39:14 -04:00
Jesse Wilson
27ddd2c286 Drop the findbugs dependency (#8769)
We don't need it.

Co-authored-by: Jesse Wilson <jwilson@squareup.com>
2025-05-13 20:51:50 -04:00
Yuri Schimke
fb22f4973e Update to official GraalVM tooling (#8613) 2024-12-21 10:56:29 +02:00
Yuri Schimke
54b64fe5d1 Embed the public suffix database list directly inside a class (#8589)
During build time embed the database as a base64 encoded string, parsed the first time a cookie is used, using the class init as the mutex.
2024-11-27 08:50:25 +00:00
Jesse Wilson
a228fd64cc Reformat with Spotless (#8180)
* Enable spotless

* Run spotlessApply

* Fixup trimMargin

* Re-run spotlessApply
2024-01-07 20:13:22 -05:00
Jesse Wilson
0e312d7804 Prepare to enable Spotless (#8179)
* Prepare to enable Spotless

I'm not super keen on any of these changes, but I am very
keen on having automatic formatting.

* Don't actually enable Spotless yet
2024-01-07 11:05:34 -05:00
Jesse Wilson
23d67c304f Switch to assertFailsWith (#8177)
* Switch to assertk.fail

* Use assertFailsWith

* More assertFailsWith

* Use more assertFailsWith

* More assertFailsWith

* More assertFailsWith

* Native image dependencies

* Move JUnit dependency

* Don't lock in a specific implementation class

* Missing finally
2024-01-06 00:31:00 -05:00
Jesse Wilson
eb6c016f6f Stop using AssertJ (#8174)
* Stop using AssertJ

This completes the migration to assertk.

* Fix a missing import

* Fix some type issues
2024-01-04 00:32:07 -05:00
Yuri Schimke
d4ca39b097 Avoid checking file metadata in graal tests (#8161) 2023-12-24 09:33:12 +00:00
Jesse Wilson
dda13bb467 Make a JPMS-compatible JavaNetCookieJar (#8074)
* Make a JPMS-compatible JavaNetCookieJar

* Add missing imports

* Depend on okhttpUrlconnection

This is necessary to pass the OSGi test.
2023-11-20 11:20:29 -05:00
Yuri Schimke
64d1262006 Make Public Suffix Database failures permanent (#7827)
* Make Public Suffix Database failures permanent

* Make Public Suffix Database failures permanent

* Fix test
2023-09-15 09:32:01 -04:00
Jesse Wilson
4fc51857a1 Deduplicate HttpUrl tests and documentation (#7814) 2023-05-11 10:48:57 -04:00
Jesse Wilson
60d5b73fb8 Track API changes in native-image-tests (#7600) 2023-01-01 10:27:03 +10:00
Yuri Schimke
fb6e7621f8 Bump graal to 22.2.0 (#7409) 2022-08-07 13:37:48 +01:00
Yuri Schimke
3530e56c4f Native image tests (#7098) 2022-02-20 14:25:51 -05:00
Goooler
9d0208d43a Cleanup libs.versions.toml (#7082) 2022-02-17 19:03:07 +00:00
Yuri Schimke
362f53546d Adopt Version Catalog and Updates plugin (#7075) 2022-02-15 23:38:32 +00:00
Yuri Schimke
7620f3ddd6 Native Image Feature. (#7071) 2022-02-09 19:04:49 +00:00
Goooler
f5758b7f26 Enable Gradle's type-safe project accessors (#7069) 2022-02-08 20:01:28 +00:00
Goooler
2831751f3c Update dependencies (#6938) 2021-11-30 06:39:45 +00:00
Yuri Schimke
7e38a9a414 Fix module name after kts switch (#6936) 2021-11-27 18:39:53 +00:00
Yuri Schimke
65a8c86b17 Fix module name after kts switch (#6934) 2021-11-27 17:14:19 +00:00
Jesse Wilson
d9a65a85c5 Switch to Vanniktech for Maven publishing (#6929)
* Switch to Vanniktech for Maven publishing

Steal configuration from Okio, which already works nicely.

* Update mockwebserver-junit5/build.gradle.kts

Co-authored-by: Benoît Quenaudon <bquenaudon@squareup.com>

Co-authored-by: Benoît Quenaudon <bquenaudon@squareup.com>
2021-11-26 06:58:00 -05:00
Goooler
c1e4765cec Extract dependencies to Dependencies (#6799) 2021-07-31 15:50:52 +03:00
Goooler
619c3256e7 Convert native-image gradle to kts (#6798) 2021-07-31 09:35:08 +03:00
Yuri Schimke
738357997b Run native image tests in CI (#6660) 2021-07-28 15:56:04 +03:00
Yuri Schimke
ffeffc669c Simplify gradle modules to avoid Intellij weirdness (#6615) 2021-04-24 18:27:11 +01:00
Yuri Schimke
b607bb0aa8 Partial move to gradle kotlin (#6532) 2021-02-06 14:57:47 +00:00
Yuri Schimke
6e8aa12dd6 Okio Filesystem (#6500)
* Testing okio

* Working tests

* Working tests

* Working tests

* Working tests

* okio 3

* Fix dependencies

* File system

* Cleanup

* Cleanup

* Cleanup

* Cache fixes

* Cache fixes

* Review comments

* Cleanup

* Cleanup

* Build fixes
2021-02-06 08:49:05 -05:00
Yuri Schimke
e2f3093c6f Graal 21 Upgrade (#6522) 2021-01-23 16:32:16 +00:00
Yuri Schimke
a334f6f14f Fix single failing graal test (#6445) 2020-11-22 12:12:58 -05:00
Yuri Schimke
083315a473 Launcher for quick tests (#6437) 2020-11-21 13:28:45 +00:00
Yuri Schimke
3d922411b9 Graal 20.3.0 (#6427) 2020-11-18 07:39:48 -05:00
Yuri Schimke
205a0bc0be Fix for native image and config (#6416) 2020-11-12 22:00:33 -05:00
Yuri Schimke
33a31db1c6 Workaround native image charset and kotlin issue (#6404) 2020-11-08 14:38:18 +00:00
Yuri Schimke
4a3ab8310d Fix windows IDE detection (#6402) 2020-11-08 09:32:05 -05:00
Yuri Schimke
0d5a9cecb3 Workaround native image params issue (#6401) 2020-11-08 07:30:54 +00:00
Yuri Schimke
38e728b0af Avoid duplicate source roots in Intellij (#6397)
* Avoid duplicate source roots in Intellij

* Avoid duplicate source roots in Intellij
2020-11-07 17:59:07 -05:00
Yuri Schimke
cf2a40bdb9 Fix publicsuffixes in native image (#6395) 2020-11-06 05:59:38 -05:00
Yuri Schimke
4677beea96 Add more n-i-t tests from okhttp (#6387) 2020-11-03 19:56:29 +00:00
Yuri Schimke
40f98404dd Test docs and unit test (#6386) 2020-11-02 15:45:06 -05:00
Yuri Schimke
a70136ee81 Additional n-i-t tests (#6384)
* Add more n-i-t tests

* Add some more tests

* Copyright
2020-11-01 11:14:52 -05:00
Yuri Schimke
59c4cfd978 Fixing n-i-t launcher (#6367) 2020-11-01 14:48:05 +00:00
Yuri Schimke
fa99b4c124 Update native image plugin (#6368) 2020-11-01 09:27:21 -05:00
Jesse Wilson
59ae0c138d Convert more tests to JUnit 5 (#6366) 2020-11-01 05:46:35 +00:00
Yuri Schimke
559b0f8d4b Run some junit5 tests (#6359) 2020-10-31 09:39:47 -04:00
Yuri Schimke
fd1b36653f Cleanup Native Image Tests (#6358)
* Base for running native image tests

* Base for running native image tests
2020-10-31 08:12:20 -04:00
Yuri Schimke
f9f86b148c Native image test runner (#6340) 2020-10-31 11:28:18 +00:00
Jesse Wilson
f8065acac2 Execute CallTest with JUnit 5 (#6349)
* Execute CallTest with JUnit 5
* Avoid Optional.isEmpty which is JDK11+
2020-10-30 06:59:02 +00:00