Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 22, 2024. It is now read-only.
This repository was archived by the owner on Jan 22, 2024. It is now read-only.

Incremental annotation processor example? #124

Open
@ScottPeterJohnson

Description

I've been trying to figure out how to get a Kotlin annotation processor to produce new Kotlin source using the Filer API, which is necessary to get it to be incremental. (See here: https://docs.gradle.org/current/userguide/java_plugin.html#sec:incremental_annotation_processing )

The example code uses a direct file write:
https://github.com/Kotlin/kotlin-examples/blob/master/gradle/kotlin-code-generation/annotation-processor/src/main/java/TestAnnotationProcessor.kt#L42

Is there a way to make an annotation processor generating Kotlin incremental? I haven't found any other information about it. Naively trying to use a SOURCE_OUTPUT location with the Filer API seems not to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /