Skip to content

logLevel is tracked as a task @Input, causing needless cache misses when the Gradle log level changes #3039

Closed

Description

@jschneider

The KSP Gradle task exposes KspGradleConfig.logLevel (Property), and it's annotated @org.gradle.api.tasks.Input. Since the value is the current Gradle log level, running the same build at a different log level changes the task's cache key and re-runs all KSP tasks:

Task :some-module:kspKotlinJs
Value of input property 'kspConfig.logLevel' has changed for task ':some-module:kspKotlinJs'

This bites in practice whenever the log level isn't constant - e.g. a plain build vs. -q/--warn, or a CI pipeline that retries with --info. Every such build throws away otherwise-valid KSP cache entries.

Versions: KSP 2.3.9, Gradle 9.6.1.

Activity

  1. added
    Gradle
    on Jul 16, 2026
  2. added theissue type on Jul 16, 2026
  3. changed the issue type fromtoon Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Gradle

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions