From e0d9f2f0a29ad1bc32aa064d5e4340353bfed137 Mon Sep 17 00:00:00 2001 From: Graham Date: Sat, 20 Feb 2021 11:02:35 +0000 Subject: [PATCH] Fix module descriptions (Guava module -> Guice module) Signed-off-by: Graham --- http/build.gradle.kts | 2 +- inject/build.gradle.kts | 30 ++++++++++++++++++++++++++++++ json/build.gradle.kts | 2 +- yaml/build.gradle.kts | 2 +- 4 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 inject/build.gradle.kts diff --git a/http/build.gradle.kts b/http/build.gradle.kts index f433eed684..df5fa6a620 100644 --- a/http/build.gradle.kts +++ b/http/build.gradle.kts @@ -19,7 +19,7 @@ publishing { name.set("OpenRS2 HTTP") description.set( """ - Guava module for creating a HTTP client with .netrc and + Guice module for creating a HTTP client with .netrc and redirection support. The I/O dispatcher is used to run asynchronous requests, as code using coroutines will likely use the I/O dispatcher to read the response body. diff --git a/inject/build.gradle.kts b/inject/build.gradle.kts new file mode 100644 index 0000000000..f433eed684 --- /dev/null +++ b/inject/build.gradle.kts @@ -0,0 +1,30 @@ +plugins { + `maven-publish` + kotlin("jvm") +} + +dependencies { + api("com.google.inject:guice:${Versions.guice}") + + implementation("com.google.guava:guava:${Versions.guava}") + implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:${Versions.kotlinCoroutines}") +} + +publishing { + publications.create("maven") { + from(components["java"]) + + pom { + packaging = "jar" + name.set("OpenRS2 HTTP") + description.set( + """ + Guava module for creating a HTTP client with .netrc and + redirection support. The I/O dispatcher is used to run + asynchronous requests, as code using coroutines will likely use + the I/O dispatcher to read the response body. + """.trimIndent() + ) + } + } +} diff --git a/json/build.gradle.kts b/json/build.gradle.kts index 647241ad36..0544998338 100644 --- a/json/build.gradle.kts +++ b/json/build.gradle.kts @@ -19,7 +19,7 @@ publishing { name.set("OpenRS2 JSON") description.set( """ - Guava module for creating a JSON ObjectMapper. + Guice module for creating a JSON ObjectMapper. """.trimIndent() ) } diff --git a/yaml/build.gradle.kts b/yaml/build.gradle.kts index 2e5b4b1a00..d3d76bf921 100644 --- a/yaml/build.gradle.kts +++ b/yaml/build.gradle.kts @@ -20,7 +20,7 @@ publishing { name.set("OpenRS2 YAML") description.set( """ - Guava module for creating a YAML ObjectMapper. + Guice module for creating a YAML ObjectMapper. """.trimIndent() ) }