From bf2beb32be0eb8560fdb7ee21fa60ad453c4644e Mon Sep 17 00:00:00 2001 From: slmlt <40519588+slmlt@users.noreply.github.com> Date: Sat, 17 Jul 2021 21:04:51 +0200 Subject: [PATCH] [Issue #129] Use kotlinOptions instead of freeCompilerArgs to avoid warnings (#134) * [Issue #129] Use kotlinOptions instead of freeCompilerArgs to avoid warnings * Update access Co-authored-by: Alexander Ivanov (KODE) Co-authored-by: Zac Sweers --- CHANGELOG.md | 8 ++++---- build.gradle.kts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2169399f..a09f5c2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,12 +11,12 @@ _2021-07-15_ * Update to Dokka `1.5.0`. * Update to KotlinPoet `1.9.0`. * Test against JDK 17 early access previews. -* **New:** `moshi-ksp` and moshi-sealed's codegen both support a new `moshi.generateProguardRules` option. This can be +* **New:** `moshi-ksp` and moshi-sealed's codegen both support a new `moshi.generateProguardRules` option. This can be set to `false` to disable proguard rule generation. -* **Fix:** Artifacts now ship with a `-module-name` attribute set to their artifact ID to help avoid module name +* **Fix:** Artifacts now ship with a `-module-name` attribute set to their artifact ID to help avoid module name collisions. - -Thanks to [@SeongUgJung](https://github.com/SeongUgJung) and [@slmlt](https://github.com/slmlt) for contributing to this + +Thanks to [@SeongUgJung](https://github.com/SeongUgJung) and [@slmlt](https://github.com/slmlt) for contributing to this release! Version 0.11.2 diff --git a/build.gradle.kts b/build.gradle.kts index e5ba9067..0863834b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -166,7 +166,7 @@ subprojects { tasks.withType { kotlinOptions { if (project.hasProperty("POM_ARTIFACT_ID")) { - freeCompilerArgs = listOf("-module-name", project.property("POM_ARTIFACT_ID") as String) + moduleName = project.property("POM_ARTIFACT_ID") as String } } }