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

54 Commits

Author SHA1 Message Date
Jesse Wilson
6f0b54f08e Get the OSGi plugin to work with Kotlin/Multiplatform (#8810)
* Get the OSGi plugin to work with Kotlin/Multiplatform

This introduces a hacky workaround to a BND bug:
https://github.com/bndtools/bnd/issues/6590

* Fix build issues

---------

Co-authored-by: Jesse Wilson <jwilson@squareup.com>
2025-05-27 14:34:03 -04:00
renovate[bot]
a51cfbf841 Update dependency com.diffplug.spotless:spotless-plugin-gradle to v7 (#8702)
* Update dependency com.diffplug.spotless:spotless-plugin-gradle to v7

* Reformat

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jake Wharton <jw@squareup.com>
2025-03-19 15:25:20 -04:00
Yuri Schimke
5b2a1e139e Split okhttp core into Android and JVM (#8600) 2024-12-27 13:39:56 +00:00
Yuri Schimke
e1da8bc50e Dependency bumps (#8611) 2024-12-08 14:59:35 +00:00
Yuri Schimke
5163d93806 Spotless bump (#8205)
* Update dependency com.diffplug.spotless:spotless-plugin-gradle to v6.24.0
* Spotless bump

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-20 10:30:28 +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
c056530682 Switch back to the kotlin JVM plugin (#8149)
* Switch back to the kotlin JVM plugin

This does a ton of file moves from jvmMain to main, and jvmTest to test.

* Don't use AnimalSniffer on okcurl

* Use assertk more (#8150)
2023-12-20 18:27:07 -05:00
Benoît Quenaudon
68105a4832 Removing all JS variants (#8145) 2023-12-18 10:49:23 -05:00
Yuri Schimke
27a726d265 Revert "Update dependency biz.aQute.bnd:biz.aQute.bnd.gradle to v7 (#8047)" (#8066)
This reverts commit ccdc05ee00.
2023-10-18 21:40:57 +01:00
renovate[bot]
ccdc05ee00 Update dependency biz.aQute.bnd:biz.aQute.bnd.gradle to v7 (#8047)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-15 13:24:39 +01:00
Yuri Schimke
1406944e1c Kotlin 1.8 (#7575)
* Kotlin 1.8 testing

* Kotlin 1.8 testing

* fix api

* Updates

* Updates

* Workaround build issue
2022-12-30 09:41:51 -05:00
renovate[bot]
bb8b273593 Update dependency biz.aQute.bnd:biz.aQute.bnd.gradle to v6.4.0 (#7536)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-10 11:22:53 +00:00
Yuri Schimke
631a7e9743 Fix JDK 8 tests (#7543) 2022-12-10 10:17:27 +00:00
renovate[bot]
354795370f Update dependency biz.aQute.bnd:biz.aQute.bnd.gradle to v6.3.1 (#7312)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-08 07:22:43 +01:00
renovate[bot]
41af529220 Update dependency biz.aQute.bnd:biz.aQute.bnd.gradle to v6.3.0 (#7303)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-02 08:47:35 +01:00
Goooler
b337403d18 Adopt Kotlin 1.6.20 (#7206) 2022-04-02 17:18:20 +01:00
renovate[bot]
4a1c508866 Update dependency biz.aQute.bnd:biz.aQute.bnd.gradle to v6.2.0 (#7120)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-27 15:42:45 +00:00
Jesse Wilson
bdc213f180 Remove japicmp (#7118)
This plugin served us very well for a long time. But the binary
compatibility plugin is better suited for our current situation.
2022-02-27 10:20:06 -05: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
Yuri Schimke
82725063c8 CacheControl MultiPlatform (#6999) 2022-01-09 17:30:39 +00:00
Yuri Schimke
3854af9174 Media Type Multiplatform. (#6985) 2022-01-08 15:55:16 +00:00
Jesse Wilson
b23158bb6b Use Kotlin's regex API in MediaType (#6962)
Preparing to promote this class to commonMain
2021-12-29 17:21:35 -05:00
Goooler
2dbb9c26ab Simplify kts (#6961) 2021-12-17 14:07:33 +00:00
Jesse Wilson
3ad1912f78 Introduce basic multiplatform features to the okhttp build (#6959)
* Introduce basic multiplatform features to the okhttp build

This PR is mostly about moving files from src/main/kotlin to src/jvmMain/kotlin.

Still to do:
 - promote some classes from jvmMain to commonMain
 - enable CI to build different platforms independently

* Fix OSGi for multiplatform
2021-12-16 08:22:02 +00:00
Goooler
cf54a31844 Update dependencies including kotlin 1.6.10 (#6958)
* Bump kotlin to 1.6.10

* Update dependencies
2021-12-15 06:55:42 -10:00
Yuri Schimke
5603ab3172 Kotlin 1.6 upgrade (#6956) 2021-12-10 19:31:54 +00:00
Goooler
2831751f3c Update dependencies (#6938) 2021-11-30 06:39:45 +00:00
Goooler
9970416cf6 Bump bnd to 6.1.0 (#6935) 2021-11-27 18:06:00 +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
d0759a7907 Simplify kts (#6926)
* Simplify kts

* Use extensions

* Use extensions

* Simplify kts
2021-11-25 19:41:08 -05:00
Yuri Schimke
4b8880aa29 Android 12 Build Dependency (#6892)
* Android 12 Build Dependency
* Add extension required for android junit5 runner
2021-11-14 09:35:27 +00:00
Jesse Wilson
1ed9863131 Upgrade to Okio 3.0.0 (#6896) 2021-10-29 10:39:56 +03:00
Goooler
980dfbbe9d Update dependencies including kotlin 1.5.31 (#6865) 2021-09-20 20:37:03 +01:00
Goooler
6f328ecab4 Update dependencies (#6850) 2021-09-16 07:33:06 +01:00
Goooler
98fae58d03 Update dependencies including gradle 1.5.30 (#6837) 2021-08-28 13:42:30 +01:00
Goooler
8841dd1c2d Update dependencies including okio 3.0.0-alpha.9 (#6832) 2021-08-12 19:44:01 +01:00
Goooler
90f8a7d26f Refactor applyOsgi & baselineJar to kotlin (#6823) 2021-08-12 07:52:29 +01:00
Goooler
9602d71684 Update dependencies (#6806) 2021-08-02 10:24:37 +03:00
Goooler
c1e4765cec Extract dependencies to Dependencies (#6799) 2021-07-31 15:50:52 +03:00
Goooler
c729ac28ef Optimize dependencies in android modules (#6793) 2021-07-30 11:38:36 +03:00
Yuri Schimke
3c5ea06234 Kotlin 1.5.21 (#6781) 2021-07-29 10:17:48 +03:00
Goooler
e4c5542e02 Convert part of gradle to kts (#6775) 2021-07-29 09:40:27 +03:00
Yuri Schimke
bee0bf82ce Okio alpha 8 (#6753) 2021-07-17 20:34:36 +01:00
Yuri Schimke
7842d7da9f OpenJSSE upgrade to 1.1.6 (#6713) 2021-06-14 11:40:03 +10:00
Yuri Schimke
e53809767a Kotlin 1.5.0 (#6664) 2021-06-14 08:34:15 +10:00
Yuri Schimke
541767dc9e Okio alpha.6 (#6710) 2021-06-14 08:26:46 +10:00
Rob
274b6614ad Build optimisations (#6698)
- Normalize test resources files containing timestamps
- Make explicit the dependency from :okcurl:sourcesJar upon :okcurl:copyResourcesTemplates
- Make explicit the dependency from :okhttp:sourcesJar upon :okhttp:copyJavaTemplates
- Disable another locally-failing test
- Add a comment about the test task input normalization.
- Ignore the JARs' "Bnd-LastModified" property in the META-INF/MANIFEST
.MF when Gradle determines if determining if task inputs have changed.

Signed-off-by: Rob Moore <rmoore@gradle.com>
2021-06-07 08:47:27 +10:00
Yuri Schimke
cb95cf1586 Okio alpha 4 (#6643) 2021-04-21 19:46:33 +01:00