Skip to content

Commit

Permalink
Prepare for release 0.12.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Aug 21, 2021
1 parent 103678f commit c23e958
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
Changelog
=========

Version 0.12.2
--------------

_2021-08-20_

* **Fix:** `RecordsJsonAdapterFactory` now properly respects `@JsonQualifier` annotations on components.
* **Fix:** `RecordsJsonAdapterFactory` now supports non-public constructors (i.e. package or file-private).
* **Fix:** Crash in `moshi-ksp` when dealing with generic typealias properites.

Version 0.12.1
--------------

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 \
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED

GROUP=dev.zacsweers.moshix
VERSION_NAME=0.13.0-SNAPSHOT
VERSION_NAME=0.12.2
POM_DESCRIPTION=Moshi Extensions
POM_URL=https://github.com/ZacSweers/MoshiX
POM_SCM_URL=https://github.com/ZacSweers/MoshiX
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ internal fun KSType.toTypeName(typeParamResolver: TypeParameterResolver): TypeNa
}
val args = arguments.map { it.toTypeName(typeParamResolver) }
val firstPass = decl.type.resolve().toTypeName(extraResolver).copy(nullable = isMarkedNullable)
return if (args.isNotEmpty()) {
firstPass.rawType().parameterizedBy(args).copy(nullable = firstPass.isNullable)
if (args.isNotEmpty()) {
firstPass.rawType().parameterizedBy(args)
} else {
firstPass
}
Expand Down
13 changes: 5 additions & 8 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,12 @@ include(":moshi-ksp:extra-moshi-test-module")
include(":moshi-ksp:moshi-ksp")
include(":moshi-ksp:tests")
include(":moshi-metadata-reflect")
include(":moshi-sealed:runtime")
include(":moshi-records-reflect")
include(":moshi-sealed:codegen")
include(":moshi-sealed:codegen-ksp")
include(":moshi-sealed:reflect")
include(":moshi-sealed:java-sealed-reflect")
include(":moshi-sealed:metadata-reflect")
include(":moshi-sealed:reflect")
include(":moshi-sealed:runtime")
include(":moshi-sealed:sample")

if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_16)) {
include(":moshi-records-reflect")
include(":moshi-sealed:java-sealed-reflect")
include(":moshi-sealed:sealed-interfaces-samples:java")
}
include(":moshi-sealed:sealed-interfaces-samples:java")

0 comments on commit c23e958

Please sign in to comment.