From d8f1067cdfb7b2e9df8f7e78b94130aa75a5b627 Mon Sep 17 00:00:00 2001 From: Pablo Baxter Date: Thu, 16 Jul 2026 12:41:31 -0700 Subject: [PATCH] Fix broken/outdated links --- CHANGELOG.md | 104 +++++++++--------- README.md | 8 +- gradle.properties | 8 +- retrofit-converters/simplexml/README.md | 2 +- .../src/main/java/retrofit2/Retrofit.java | 8 +- website/.env.release | 2 +- website/.env.snapshot | 2 +- website/astro.config.mjs | 8 +- website/src/content.config.ts | 2 +- website/src/content/docs/configuration.md | 4 +- website/src/content/docs/declarations.md | 2 +- website/src/content/docs/download.mdx | 6 +- 12 files changed, 78 insertions(+), 78 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 582b98174c..752ca55a79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # Change Log ## [Unreleased] -[Unreleased]: https://github.com/square/retrofit/compare/3.0.0...HEAD +[Unreleased]: https://github.com/lysine-dev/retrofit/compare/3.0.0...HEAD **New** @@ -19,7 +19,7 @@ ## [3.0.0] - 2025-05-15 -[3.0.0]: https://github.com/square/retrofit/releases/tag/3.0.0 +[3.0.0]: https://github.com/lysine-dev/retrofit/releases/tag/3.0.0 **Changed** @@ -33,7 +33,7 @@ This means libraries compiled against 2.x can still be used with the 3.x version ## [2.12.0] - 2025-05-15 -[2.12.0]: https://github.com/square/retrofit/releases/tag/2.12.0 +[2.12.0]: https://github.com/lysine-dev/retrofit/releases/tag/2.12.0 **New** @@ -78,7 +78,7 @@ This means libraries compiled against 2.x can still be used with the 3.x version - `@Header`, `@Headers`, and `@HeaderMap` can now set non-ASCII values through the `allowUnsafeNonAsciiValues` annotation property. These are not technically compliant with the HTTP specification, but are often supported or required by services. - Publish a BOM of all modules. The Maven coordinates are `com.squareup.retrofit2:retrofit-bom`. - `Invocation` now exposes the service `Class` and the instance on which the method was invoked. This disambiguates the source when service inheritence is used. - - A response type keeper annotation processor is now available for generating shrinker rules for all referenced types in your service interface. In some cases, it's impossible for static shrinker rules to keep the entirety of what Retrofit needs at runtime. This annotation processor generates those additional rules. For more info see [its README](https://github.com/square/retrofit/tree/trunk/retrofit-response-type-keeper#readme). + - A response type keeper annotation processor is now available for generating shrinker rules for all referenced types in your service interface. In some cases, it's impossible for static shrinker rules to keep the entirety of what Retrofit needs at runtime. This annotation processor generates those additional rules. For more info see [its README](https://github.com/lysine-dev/retrofit/tree/trunk/retrofit-response-type-keeper#readme). **Changed** - Add shrinker rules to retain the generic signatures of built-in types (`Call`, `Response`, etc.) which are used via reflection at runtime. @@ -141,7 +141,7 @@ This means libraries compiled against 2.x can still be used with the 3.x version **This release changes the minimum requirements to Java 8+ or Android 5+.** See [this blog post](https://cashapp.github.io/2019-02-05/okhttp-3-13-requires-android-5) for more information on the change. - * New: Upgrade to OkHttp 3.14.4. Please see [its changelog for 3.x](https://square.github.io/okhttp/changelog_3x/). + * New: Upgrade to OkHttp 3.14.4. Please see [its changelog for 3.x](https://lysine.dev/okhttp/changelog_3x/). * Fix: Allow service interfaces to extend other interfaces. * Fix: Ensure a non-null body is returned by `Response.error`. @@ -184,7 +184,7 @@ See [this blog post](https://cashapp.github.io/2019-02-05/okhttp-3-13-requires-a You can also return `Response` for access to the response metadata. Currently this integration only supports non-null response body types. Follow - [issue 3075](https://github.com/square/retrofit/issues/3075) for nullable type support. + [issue 3075](https://github.com/lysine-dev/retrofit/issues/3075) for nullable type support. * New: **`@Tag`** parameter annotation for setting tags on the underlying OkHttp `Request` object. These can be read in `CallAdapter`s or OkHttp `Interceptor`s for tracing, analytics, varying behavior, and more. @@ -604,7 +604,7 @@ Changes from beta 4: * Fix: Support empty HTTP response status reason. * If an `ErrorHandler` is supplied it will be invoked for `Callback` and `Observable` methods. * HTTP `PATCH` method using `HttpUrlConnection` is no longer supported. Add the - [OkHttp](https://square.github.io/okhttp) jar to your project if you need this behavior. + [OkHttp](https://lysine.dev/okhttp) jar to your project if you need this behavior. * Custom `Client` implementations should no longer set `Content-Type` or `Content-Length` headers based on the `TypedInput` body of the `Request`. These headers will now be added automatically as part of the standard `Request` header list. @@ -711,49 +711,49 @@ Initial release. -[2.11.0]: https://github.com/square/retrofit/releases/tag/2.11.0 -[2.10.0]: https://github.com/square/retrofit/releases/tag/2.10.0 -[2.9.0]: https://github.com/square/retrofit/releases/tag/2.9.0 -[2.8.2]: https://github.com/square/retrofit/releases/tag/2.8.2 -[2.8.1]: https://github.com/square/retrofit/releases/tag/parent-2.8.1 -[2.8.0]: https://github.com/square/retrofit/releases/tag/parent-2.8.0 -[2.7.2]: https://github.com/square/retrofit/releases/tag/parent-2.7.2 -[2.7.1]: https://github.com/square/retrofit/releases/tag/parent-2.7.1 -[2.7.0]: https://github.com/square/retrofit/releases/tag/parent-2.7.0 -[2.6.4]: https://github.com/square/retrofit/releases/tag/parent-2.6.4 -[2.6.3]: https://github.com/square/retrofit/releases/tag/parent-2.6.3 -[2.6.2]: https://github.com/square/retrofit/releases/tag/parent-2.6.2 -[2.6.1]: https://github.com/square/retrofit/releases/tag/parent-2.6.1 -[2.6.0]: https://github.com/square/retrofit/releases/tag/parent-2.6.0 -[2.5.0]: https://github.com/square/retrofit/releases/tag/parent-2.5.0 -[2.4.0]: https://github.com/square/retrofit/releases/tag/parent-2.4.0 -[2.3.0]: https://github.com/square/retrofit/releases/tag/parent-2.3.0 -[2.2.0]: https://github.com/square/retrofit/releases/tag/parent-2.2.0 -[2.1.0]: https://github.com/square/retrofit/releases/tag/parent-2.1.0 -[2.0.2]: https://github.com/square/retrofit/releases/tag/parent-2.0.2 -[2.0.1]: https://github.com/square/retrofit/releases/tag/parent-2.0.1 -[2.0.0]: https://github.com/square/retrofit/releases/tag/parent-2.0.0 -[2.0.0-beta4]: https://github.com/square/retrofit/releases/tag/parent-2.0.0-beta4 -[2.0.0-beta3]: https://github.com/square/retrofit/releases/tag/parent-2.0.0-beta3 -[2.0.0-beta2]: https://github.com/square/retrofit/releases/tag/parent-2.0.0-beta2 -[2.0.0-beta1]: https://github.com/square/retrofit/releases/tag/parent-2.0.0-beta1 -[1.9.0]: https://github.com/square/retrofit/releases/tag/parent-1.9.0 -[1.8.0]: https://github.com/square/retrofit/releases/tag/parent-1.8.0 -[1.7.1]: https://github.com/square/retrofit/releases/tag/parent-1.7.1 -[1.7.0]: https://github.com/square/retrofit/releases/tag/parent-1.7.0 -[1.6.1]: https://github.com/square/retrofit/releases/tag/parent-1.6.1 -[1.6.0]: https://github.com/square/retrofit/releases/tag/parent-1.6.0 -[1.5.1]: https://github.com/square/retrofit/releases/tag/parent-1.5.1 -[1.5.0]: https://github.com/square/retrofit/releases/tag/parent-1.5.0 -[1.4.1]: https://github.com/square/retrofit/releases/tag/parent-1.4.1 -[1.4.0]: https://github.com/square/retrofit/releases/tag/parent-1.4.0 -[1.3.0]: https://github.com/square/retrofit/releases/tag/parent-1.3.0 -[1.2.2]: https://github.com/square/retrofit/releases/tag/parent-1.2.2 -[1.2.1]: https://github.com/square/retrofit/releases/tag/parent-1.2.1 -[1.2.0]: https://github.com/square/retrofit/releases/tag/parent-1.2.0 -[1.1.1]: https://github.com/square/retrofit/releases/tag/parent-1.1.1 -[1.1.0]: https://github.com/square/retrofit/releases/tag/parent-1.1.0 -[1.0.2]: https://github.com/square/retrofit/releases/tag/parent-1.0.2 -[1.0.1]: https://github.com/square/retrofit/releases/tag/parent-1.0.1 -[1.0.0]: https://github.com/square/retrofit/releases/tag/parent-1.0.0 +[2.11.0]: https://github.com/lysine-dev/retrofit/releases/tag/2.11.0 +[2.10.0]: https://github.com/lysine-dev/retrofit/releases/tag/2.10.0 +[2.9.0]: https://github.com/lysine-dev/retrofit/releases/tag/2.9.0 +[2.8.2]: https://github.com/lysine-dev/retrofit/releases/tag/2.8.2 +[2.8.1]: https://github.com/lysine-dev/retrofit/releases/tag/parent-2.8.1 +[2.8.0]: https://github.com/lysine-dev/retrofit/releases/tag/parent-2.8.0 +[2.7.2]: https://github.com/lysine-dev/retrofit/releases/tag/parent-2.7.2 +[2.7.1]: https://github.com/lysine-dev/retrofit/releases/tag/parent-2.7.1 +[2.7.0]: https://github.com/lysine-dev/retrofit/releases/tag/parent-2.7.0 +[2.6.4]: https://github.com/lysine-dev/retrofit/releases/tag/parent-2.6.4 +[2.6.3]: https://github.com/lysine-dev/retrofit/releases/tag/parent-2.6.3 +[2.6.2]: https://github.com/lysine-dev/retrofit/releases/tag/parent-2.6.2 +[2.6.1]: https://github.com/lysine-dev/retrofit/releases/tag/parent-2.6.1 +[2.6.0]: https://github.com/lysine-dev/retrofit/releases/tag/parent-2.6.0 +[2.5.0]: https://github.com/lysine-dev/retrofit/releases/tag/parent-2.5.0 +[2.4.0]: https://github.com/lysine-dev/retrofit/releases/tag/parent-2.4.0 +[2.3.0]: https://github.com/lysine-dev/retrofit/releases/tag/parent-2.3.0 +[2.2.0]: https://github.com/lysine-dev/retrofit/releases/tag/parent-2.2.0 +[2.1.0]: https://github.com/lysine-dev/retrofit/releases/tag/parent-2.1.0 +[2.0.2]: https://github.com/lysine-dev/retrofit/releases/tag/parent-2.0.2 +[2.0.1]: https://github.com/lysine-dev/retrofit/releases/tag/parent-2.0.1 +[2.0.0]: https://github.com/lysine-dev/retrofit/releases/tag/parent-2.0.0 +[2.0.0-beta4]: https://github.com/lysine-dev/retrofit/releases/tag/parent-2.0.0-beta4 +[2.0.0-beta3]: https://github.com/lysine-dev/retrofit/releases/tag/parent-2.0.0-beta3 +[2.0.0-beta2]: https://github.com/lysine-dev/retrofit/releases/tag/parent-2.0.0-beta2 +[2.0.0-beta1]: https://github.com/lysine-dev/retrofit/releases/tag/parent-2.0.0-beta1 +[1.9.0]: https://github.com/lysine-dev/retrofit/releases/tag/parent-1.9.0 +[1.8.0]: https://github.com/lysine-dev/retrofit/releases/tag/parent-1.8.0 +[1.7.1]: https://github.com/lysine-dev/retrofit/releases/tag/parent-1.7.1 +[1.7.0]: https://github.com/lysine-dev/retrofit/releases/tag/parent-1.7.0 +[1.6.1]: https://github.com/lysine-dev/retrofit/releases/tag/parent-1.6.1 +[1.6.0]: https://github.com/lysine-dev/retrofit/releases/tag/parent-1.6.0 +[1.5.1]: https://github.com/lysine-dev/retrofit/releases/tag/parent-1.5.1 +[1.5.0]: https://github.com/lysine-dev/retrofit/releases/tag/parent-1.5.0 +[1.4.1]: https://github.com/lysine-dev/retrofit/releases/tag/parent-1.4.1 +[1.4.0]: https://github.com/lysine-dev/retrofit/releases/tag/parent-1.4.0 +[1.3.0]: https://github.com/lysine-dev/retrofit/releases/tag/parent-1.3.0 +[1.2.2]: https://github.com/lysine-dev/retrofit/releases/tag/parent-1.2.2 +[1.2.1]: https://github.com/lysine-dev/retrofit/releases/tag/parent-1.2.1 +[1.2.0]: https://github.com/lysine-dev/retrofit/releases/tag/parent-1.2.0 +[1.1.1]: https://github.com/lysine-dev/retrofit/releases/tag/parent-1.1.1 +[1.1.0]: https://github.com/lysine-dev/retrofit/releases/tag/parent-1.1.0 +[1.0.2]: https://github.com/lysine-dev/retrofit/releases/tag/parent-1.0.2 +[1.0.1]: https://github.com/lysine-dev/retrofit/releases/tag/parent-1.0.1 +[1.0.0]: https://github.com/lysine-dev/retrofit/releases/tag/parent-1.0.0 [maven_provided]: https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html diff --git a/README.md b/README.md index 27c6f8a034..e66cd9795b 100644 --- a/README.md +++ b/README.md @@ -44,9 +44,9 @@ License limitations under the License. - [1]: https://square.github.io/retrofit/ + [1]: https://lysine.dev/retrofit/ [2]: https://search.maven.org/remote_content?g=com.squareup.retrofit2&a=retrofit&v=LATEST [snap]: https://s01.oss.sonatype.org/content/repositories/snapshots/ - [proguard file]: https://github.com/square/retrofit/blob/master/retrofit/src/main/resources/META-INF/proguard/retrofit2.pro - [okhttp proguard]: https://square.github.io/okhttp/r8_proguard/ - [okio proguard]: https://square.github.io/okio/#r8-proguard + [proguard file]: https://github.com/lysine-dev/retrofit/blob/master/retrofit/src/main/resources/META-INF/proguard/retrofit2.pro + [okhttp proguard]: https://lysine.dev/okhttp/r8_proguard/ + [okio proguard]: https://lysine.dev/okio/#r8-proguard diff --git a/gradle.properties b/gradle.properties index f0f8f64c53..a9a22da221 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,10 +1,10 @@ GROUP=com.squareup.retrofit2 VERSION_NAME=3.1.0-SNAPSHOT -POM_URL=https://github.com/square/retrofit -POM_SCM_URL=https://github.com/square/retrofit/ -POM_SCM_CONNECTION=scm:git:git://github.com/square/retrofit.git -POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/square/retrofit.git +POM_URL=https://github.com/lysine-dev/retrofit +POM_SCM_URL=https://github.com/lysine-dev/retrofit/ +POM_SCM_CONNECTION=scm:git:git://github.com/lysine-dev/retrofit.git +POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/lysine-dev/retrofit.git POM_LICENCE_NAME=The Apache Software License, Version 2.0 POM_LICENCE_URL=https://www.apache.org/licenses/LICENSE-2.0.txt diff --git a/retrofit-converters/simplexml/README.md b/retrofit-converters/simplexml/README.md index 314aae392c..65523230f7 100644 --- a/retrofit-converters/simplexml/README.md +++ b/retrofit-converters/simplexml/README.md @@ -5,7 +5,7 @@ Deprecated – Please switch to the JAXB Converter ------------------------------------------------ The Simple XML project is no longer maintained. We recommend switching to the -[JAXB converter](https://github.com/square/retrofit/tree/master/retrofit-converters/jaxb). +[JAXB converter](https://github.com/lysine-dev/retrofit/tree/master/retrofit-converters/jaxb). ----- diff --git a/retrofit/src/main/java/retrofit2/Retrofit.java b/retrofit/src/main/java/retrofit2/Retrofit.java index 9e5a5bd561..19b912d966 100644 --- a/retrofit/src/main/java/retrofit2/Retrofit.java +++ b/retrofit/src/main/java/retrofit2/Retrofit.java @@ -597,12 +597,12 @@ public Builder baseUrl(String baseUrl) { * replace the scheme of {@code baseUrl}. * *

Base URL: http://example.com/
- * Endpoint: https://github.com/square/retrofit/
- * Result: https://github.com/square/retrofit/ + * Endpoint: https://github.com/lysine-dev/retrofit/
+ * Result: https://github.com/lysine-dev/retrofit/ * *

Base URL: http://example.com
- * Endpoint: //github.com/square/retrofit/
- * Result: http://github.com/square/retrofit/ (note the scheme stays 'http') + * Endpoint: //github.com/lysine-dev/retrofit/
+ * Result: http://github.com/lysine-dev/retrofit/ (note the scheme stays 'http') */ public Builder baseUrl(HttpUrl baseUrl) { Objects.requireNonNull(baseUrl, "baseUrl == null"); diff --git a/website/.env.release b/website/.env.release index 06e0eab205..f8572a068f 100644 --- a/website/.env.release +++ b/website/.env.release @@ -1,2 +1,2 @@ -SITE=https://square.github.io +SITE=https://lysine.dev BASE_URL=/retrofit diff --git a/website/.env.snapshot b/website/.env.snapshot index 537642d09e..5886fb3cf9 100644 --- a/website/.env.snapshot +++ b/website/.env.snapshot @@ -1,2 +1,2 @@ -SITE=https://square.github.io +SITE=https://lysine.dev BASE_URL=/retrofit/latest diff --git a/website/astro.config.mjs b/website/astro.config.mjs index c90184a299..56d6b1b00c 100644 --- a/website/astro.config.mjs +++ b/website/astro.config.mjs @@ -8,7 +8,7 @@ let retrofitProperties = readFileSync('../gradle.properties'); let retrofitVersion = /VERSION_NAME=(.*?)\n/.exec(retrofitProperties)[1]; export default defineConfig({ - site: 'https://square.github.io', + site: 'https://lysine.dev', base: '/retrofit/latest', env: { schema: { @@ -22,11 +22,11 @@ export default defineConfig({ './src/styles/theme.css', ], editLink: { - baseUrl: 'https://github.com/square/retrofit/edit/trunk/website', + baseUrl: 'https://github.com/lysine-dev/retrofit/edit/trunk/website', }, social: [ { icon: 'stackOverflow', label: 'StackOverflow', href: 'https://stackoverflow.com/questions/tagged/retrofit?sort=active' }, - { icon: 'github', label: 'GitHub', href: 'https://github.com/square/retrofit' }, + { icon: 'github', label: 'GitHub', href: 'https://github.com/lysine-dev/retrofit' }, ], sidebar: [ { @@ -42,7 +42,7 @@ export default defineConfig({ { label: 'Resources', items: [ - { label: 'GitHub', link: 'https://github.com/square/retrofit' }, + { label: 'GitHub', link: 'https://github.com/lysine-dev/retrofit' }, { label: 'Javadoc', collapsed: true, diff --git a/website/src/content.config.ts b/website/src/content.config.ts index 493fe0766c..f952fa24aa 100644 --- a/website/src/content.config.ts +++ b/website/src/content.config.ts @@ -9,7 +9,7 @@ export const collections = { // In non-"release" mode, add a banner indicating snapshot documentation. extend: z.object(import.meta.env.MODE == "release" && {} || { banner: z.object({ content: z.string() }).default({ - content: `You are viewing the snapshot documentation. Looking for the release documentation?`, + content: `You are viewing the snapshot documentation. Looking for the release documentation?`, }), }), }), diff --git a/website/src/content/docs/configuration.md b/website/src/content/docs/configuration.md index 4c756b9a78..24fb37890e 100644 --- a/website/src/content/docs/configuration.md +++ b/website/src/content/docs/configuration.md @@ -46,7 +46,7 @@ Two delegating converters are provided: ### Custom converters -If you need to communicate with an API that uses a content-format that Retrofit does not support out of the box (e.g. YAML, txt, custom format) or you wish to use a different library to implement an existing format, you can easily create your own converter. Create a class that extends the [`Converter.Factory` class](https://github.com/square/retrofit/blob/master/retrofit/src/main/java/retrofit2/Converter.java) and pass in an instance when building your adapter. +If you need to communicate with an API that uses a content-format that Retrofit does not support out of the box (e.g. YAML, txt, custom format) or you wish to use a different library to implement an existing format, you can easily create your own converter. Create a class that extends the [`Converter.Factory` class](https://github.com/lysine-dev/retrofit/blob/master/retrofit/src/main/java/retrofit2/Converter.java) and pass in an instance when building your adapter. ### Third-party converters @@ -79,7 +79,7 @@ This allows API requests to seamlessly compose with any existing threading model ### Custom call adapters If you need to integration with a work library that Retrofit does not support out of the box, or you wish to use a different strategy to adapt an existing library, you can easily create your own call adapter. -Create a class that extends the [`CallAdapter.Factory` class](https://github.com/square/retrofit/blob/master/retrofit/src/main/java/retrofit2/CallAdapter.java) for a target type, and return an adapter which wraps the built-in `Call`. +Create a class that extends the [`CallAdapter.Factory` class](https://github.com/lysine-dev/retrofit/blob/master/retrofit/src/main/java/retrofit2/CallAdapter.java) for a target type, and return an adapter which wraps the built-in `Call`. ### Third-party call adapters diff --git a/website/src/content/docs/declarations.md b/website/src/content/docs/declarations.md index 4bb62df934..908baf6507 100644 --- a/website/src/content/docs/declarations.md +++ b/website/src/content/docs/declarations.md @@ -108,7 +108,7 @@ Similar to query parameters, for complex header combinations, a `Map` can be use Call getUser(@HeaderMap Map headers) ``` -Headers that need to be added to every request can be specified using an [OkHttp interceptor](https://square.github.io/okhttp/features/interceptors/). +Headers that need to be added to every request can be specified using an [OkHttp interceptor](https://lysine.dev/okhttp/features/interceptors/). ## Synchronous vs. asynchronous diff --git a/website/src/content/docs/download.mdx b/website/src/content/docs/download.mdx index 82ca0cd382..e15745978a 100644 --- a/website/src/content/docs/download.mdx +++ b/website/src/content/docs/download.mdx @@ -12,7 +12,7 @@ export const mavenSnippet = ` ` + VERSION + ` `; -The source code to the Retrofit, its samples, and this website is [available on GitHub](https://github.com/square/retrofit). +The source code to the Retrofit, its samples, and this website is [available on GitHub](https://github.com/lysine-dev/retrofit). ### Gradle @@ -28,5 +28,5 @@ Retrofit requires at minimum Java 8+ or Android API 21+. If you are using R8 the shrinking and obfuscation rules are included automatically. -ProGuard users must manually add the options from [retrofit2.pro](https://github.com/square/retrofit/blob/master/retrofit/src/main/resources/META-INF/proguard/retrofit2.pro). -You might also need rules for [OkHttp](https://square.github.io/okhttp/r8_proguard) and [Okio](https://github.com/square/okio#r8--proguard) which are dependencies of this library. +ProGuard users must manually add the options from [retrofit2.pro](https://github.com/lysine-dev/retrofit/blob/master/retrofit/src/main/resources/META-INF/proguard/retrofit2.pro). +You might also need rules for [OkHttp](https://lysine.dev/okhttp/r8_proguard) and [Okio](https://github.com/lysine-dev/okio#r8--proguard) which are dependencies of this library.