# KSP documentation

**URL:** <https://discuss.kotlinlang.org/t/ksp-documentation/28280>\
**Category:** Uncategorized\
**Created:** [March 6, 2024, 12:37am UTC](https://discuss.kotlinlang.org/t/ksp-documentation/28280 "2024-03-06T00:37:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![serddmit](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@serddmit](https://discuss.kotlinlang.org/u/serddmit)\
**Post date:** [March 6, 2024, 12:37am UTC](https://discuss.kotlinlang.org/t/ksp-documentation/28280/1 "2024-03-06T00:37:14Z")

</div>

Hello!

I saw next statement in the documentation:

```auto
It may also be necessary to configure these directories in your KSP consumer module's build script:

kotlin { 
    sourceSets.main {
         kotlin.srcDir("build/generated/ksp/main/kotlin") 
    }
    sourceSets.test { 
         kotlin.srcDir("build/generated/ksp/test/kotlin")
    } 
}

If you are using IntelliJ IDEA and KSP in a Gradle plugin then the above snippet will give the following warning:
Execution optimizations have been disabled for task ':publishPluginJar' to ensure correctness due to the following reasons: Gradle detected a problem with the following location: '../build/generated/ksp/main/kotlin'.
Reason: Task ':publishPluginJar' uses this output of task ':kspKotlin' without declaring an explicit or implicit dependency.

```

How this configuration relates to publishPluginJar?

Thanks
