Incremental KAPT - pass changed classpath entries

Pass computed list of changed classpath names to KAPT instead
of relying on the history files to be computed by stub generation.
Also, stop generating classpath history changes during the stub generation.

This commit does not compute the actual changed classpath entries,
and that will be done in the following commits.

 #KT-23880
This commit is contained in:
Ivan Gavrilovic
2019-03-26 17:31:17 +00:00
committed by Alexey Tsvetkov
parent 0c09f56118
commit c85e21d43b
26 changed files with 136 additions and 255 deletions
+10 -4
View File
@@ -90,10 +90,16 @@ enum class KaptCliOption(
"Use only in apt mode. Output directory for cache necessary to support incremental annotation processing."
),
CLASSPATH_FQ_NAMES_HISTORY(
"classpathFqNamesHistory",
"<path>",
"Use only in apt mode. Directory containing history of classpath fq name changes."
CLASSPATH_CHANGES(
"classpathChange",
"<jvmInternalName,[jvmInternalName,...]>",
"Use only in apt mode. Classpath jvm internal names that changed."
),
PROCESS_INCREMENTALLY(
"processIncrementally",
"boolean",
"Use only in apt mode. Enables incremental apt processing"
),
ANNOTATION_PROCESSOR_CLASSPATH_OPTION(