Yuri Schimke
362f53546d
Adopt Version Catalog and Updates plugin ( #7075 )
2022-02-15 23:38:32 +00:00
Goooler
f5758b7f26
Enable Gradle's type-safe project accessors ( #7069 )
2022-02-08 20:01:28 +00:00
Goooler
5cfc040daf
Replace StandardCharsets with Charsets in Kotlin ( #6986 )
2022-01-08 16:17:43 +00:00
Goooler
2831751f3c
Update dependencies ( #6938 )
2021-11-30 06:39:45 +00:00
Goooler
8debc78b00
Simplify gradle kts ( #6931 )
2021-11-27 12:31:27 +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
Jesse Wilson
35bb1740a4
Convert the main build.gradle file to KTS ( #6925 )
...
I attempted to do a literal translation as much as possible.
Subprojects now need plugins to be configured directly so they
can use the appropriate syntax.
2021-11-24 07:19:39 +00:00
Goooler
e1af67f082
Declare types & Cleanup ( #6842 )
...
* Declare types
* Code cleanup
* Declare types
2021-08-30 23:32:43 -04:00
Goooler
e016350e5a
Convert module gradle builds files to kts ( #6830 )
2021-08-12 08:36:23 +01:00
Goooler
cc3ce11fc4
Code cleanup and imports ( #6822 )
2021-08-03 14:52:10 +03:00
Goooler
0111b5f648
Kapt picocliCompiler in okcurl module ( #6807 )
2021-08-01 22:39:53 +03: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
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
e27e7a3635
Gradle 7.0 upgrade ( #6623 )
2021-04-25 14:10:41 +01:00
Yuri Schimke
b607bb0aa8
Partial move to gradle kotlin ( #6532 )
2021-02-06 14:57:47 +00:00
Yuri Schimke
e2f3093c6f
Graal 21 Upgrade ( #6522 )
2021-01-23 16:32:16 +00:00
Yuri Schimke
3d922411b9
Graal 20.3.0 ( #6427 )
2020-11-18 07:39:48 -05:00
Yuri Schimke
8e270a171d
Okcurl upgrade and cleanup ( #6417 )
...
* Cleanup okcurl build
* Cleanup okcurl build
2020-11-13 06:23:44 -05:00
Yuri Schimke
c194980c7f
Automatic Graal support in okhttp core ( #6292 )
...
Uses SVM annotated methods to substitute and avoid native image build issues.
2020-10-02 08:41:01 +01:00
Yuri Schimke
a76c40a935
Kotlin 1.4 dependency upgrade and language features ( #5947 )
2020-09-06 16:36:12 +01:00
Yuri Schimke
15b7d47185
JSSE Debug in tests ( #6041 )
2020-05-17 18:10:09 +01:00
Yuri Schimke
19771365f2
Rename to src/main/kotlin ( #5938 )
...
Follows the default path logic for kotlin classes.
2020-04-11 17:15:25 +01:00
Jesse Wilson
e6cefb7a4d
Switch to Gradle's Maven Publishing Plugin
...
This removes a bunch of low-value stuff from the pom.xml files:
- name
- description
- licence distribution ('repo')
- developers clause
- test dependencies
I don't think any of this will be missed, and it shrinks the pom.xml
file to the minimal set of useful stuff.
This also causes us to publish a gradle .module file. This is the
motivation for this change. It'll allow us to ship a Gradle platform,
which is a more capable than a Maven BOM.
2020-01-19 21:44:55 -05:00
Jesse Wilson
c1d50e371f
Upgrade Okio and some build dependencies
...
The new ktlint sorts imports which makes this diff large.
The new japicmp ignores 'final' modifier changes in final classes.
We adopt the Google style for checkstyle.xml.
Okio readByteString() now uses segments more aggressively, so we
need to mitigate that to avoid tracking those segments in a test.
2020-01-11 22:24:12 -05:00
Jesse Wilson
db39fa4a93
Remove the application plugin from okcurl
...
I can't have both this and shadow concurrently because they both attempt
to use the same classifier when publishing.
2019-08-12 11:55:55 -04:00
Yuri Schimke
076e976c10
Picocli ( #5207 )
...
Switch from airline to picocli, which is more graal compatible and has nicer default output.
2019-07-19 15:15:05 +01:00
Jesse Wilson
6b537e2585
Remove most of the SAM bridges
...
The ReplaceWith() on these doesn't work well.
For interceptors I expect the need to be common enough that I'm making these
new APIs that we'll keep going forward. This is for both creating interceptors
directly and as arguments to addInterceptor() and addNetworkInterceptor().
2019-06-02 11:28:53 -04:00
Jesse Wilson
53ba4dd9ef
Replace MediaType.get(string) with string.toMediaType() ( #5132 )
2019-05-27 06:38:35 +01:00
Jesse Wilson
8bb58332db
Extension Functions toRequestBody(), toResponseBody()
2019-05-25 14:02:55 -04:00
Jesse Wilson
9c20f17270
Use vals in OkHttpClient
2019-05-25 10:34:25 -04:00
Masaru Nomura
7ad4f970ba
Idiomatic Kotlin for Response.kt
...
- define `@get:JvmName(...)` for the following vals in constructor instead of passing `builder: Builder`.
- `request: Request`
- `protocol: Protocol`
- `message: String`
- `code: Int`
- `handshake: Handshake?`
- `headers: Headers`
- `body: ResponseBody?`
- `networkResponse: Response?`
- `cacheResponse: Response?`
- `priorResponse: Response?`
- `sentRequestAtMillis: Long`
- `receivedResponseAtMillis: Long`
- `exchange: Exchange?`
- add `@Deprecated(...)` to the following functions.
- `fun request(): Request`
- `fun protocol(): Protocol`
- `fun message(): String`
- `fun code(): Int`
- `fun handshake(): Handshake?`
- `fun headers(): Headers`
- `fun body(): ResponseBody?`
- `fun networkResponse(): Response?`
- `fun cacheResponse(): Response?`
- `fun priorResponse(): Response?`
- `fun sentRequestAtMillis(): Long`
- `fun receivedResponseAtMillis(): Long`
- `fun cacheControl(): CacheControl`
- clean up code where `()`(parentheses) is unnecessarily used.
2019-05-24 16:16:29 -04:00
Jake Wharton
450750c031
Eliminate Util object in favor of top-level functions
2019-05-20 18:13:30 -04:00
Jesse Wilson
59233b4ee2
Address some code style feedback in Kotlin conversions
2019-05-20 11:49:24 -04:00
Yuri Schimke
dcf5c8ceb6
Fix/Simplify regex usage ( #5059 )
...
* Fix/Simplify regex usage
* Cleanup
2019-05-18 06:33:34 -04:00
Jesse Wilson
53e0f9e7fb
Adopt idiomatic Kotlin in Headers
2019-05-16 08:32:31 -04:00
Yuri Schimke
a49b636e34
Convert okcurl to Kotlin ( #5033 )
...
* Rename File
* Convert Main to Kotlin
* Review comments
2019-05-11 18:00:18 +01:00
Jesse Wilson
11805c14a4
Put apply plugin at the top of the build
2019-04-07 16:55:52 -04:00
Jesse Wilson
6ee3c89dab
Convert okhttp-tls classes to Kotlin ( #4895 )
...
* Rename HandshakeCertificates.java to .kt
* Convert okhttp-tls classes to Kotlin
2019-04-07 10:48:57 -04:00
Jesse Wilson
c53f8db73d
Configure gradle artifact uploads
2019-03-17 09:13:01 -04:00
Jesse Wilson
dc1e870d24
Basic Gradle support
2019-03-17 00:16:26 -04:00
Jesse Wilson
695b46cb2e
[maven-release-plugin] prepare for next development iteration
2019-03-13 23:42:40 -04:00
Jesse Wilson
44d51d0ceb
[maven-release-plugin] prepare release parent-3.14.0
2019-03-13 23:42:33 -04:00
Benoît Quenaudon
6c4855a7c7
Use AssertJ in tests ( #4713 )
2019-03-13 21:07:33 -04:00
Jesse Wilson
0a59e68b16
[maven-release-plugin] prepare for next development iteration
2019-02-05 12:15:46 -05:00
Jesse Wilson
d28d2cec21
[maven-release-plugin] prepare release parent-3.13.1
2019-02-05 12:15:39 -05:00
Jesse Wilson
5ecd590c8c
[maven-release-plugin] prepare for next development iteration
2019-02-04 23:32:52 -05:00
Jesse Wilson
d55661544b
[maven-release-plugin] prepare release parent-3.13.0
2019-02-04 23:32:45 -05:00
Jesse Wilson
778e0334a4
Use lambdas where appropriate
2019-01-11 22:31:36 -05:00