Update to KSP 1.0.1 and use new jvm modifiers resolver API (#1422)

* Update to KSP 1.0.1 and use new jvm modifiers resolver API

This allows us to fully support transient across compilation boundaries

* Copy in KSP-supported KCT for now

* Update CI refs

* Move up transient check to the right place

Wasn't actually looking at the added annotation later 🤧

* Try regular RC?

* Skip that matrix for now
This commit is contained in:
Zac Sweers
2021-11-15 11:25:15 -05:00
committed by GitHub
parent 85ba5bf188
commit 9440e5c7d0
6 changed files with 244 additions and 19 deletions

View File

@@ -18,9 +18,9 @@ package com.squareup.moshi.kotlin.codegen.test.extra
import com.squareup.moshi.Json
public abstract class AbstractClassInModuleA {
// Ignored to ensure processor sees them across module boundaries.
// @Transient doesn't work for this case because it's source-only and jvm modifiers aren't currently visible in KSP.
// Ignored/transient to ensure processor sees them across module boundaries.
@Transient private lateinit var lateinitTransient: String
@Transient private var regularTransient: String = "regularTransient"
// Note that we target the field because otherwise it is stored on the synthetic holder method for
// annotations, which isn't visible from kapt
@field:Json(ignore = true) private lateinit var lateinitIgnored: String