"Classpath entry points to a non-existent location" in 1.3.70

Hi,

I updated Kotlin from 1.3.61 to 1.3.70 and I found an irritating warning related to kapt:

> Task :base:kaptGenerateStubsTestKotlin
w: Classpath entry points to a non-existent location: <project-path>/base/build/resources/main

base is a kotlin/jvm library module.

I used to have set kotlinOptions.allWarningsAsErrors = true so the upgrade started failing my tests.

My build.gradle for this module:

import chargedup.buildsrc.Libs

apply plugin: 'kotlin'

apply plugin: 'kotlin-kapt'
kapt {
    correctErrorTypes = true
    useBuildCache = true
}

dependencies {
    implementation project(':libraries:concurrency-api')

    implementation Libs.Kotlin.stdlib

    api Libs.Coroutines.core

    testImplementation Libs.junit
    testImplementation Libs.Kotlin.stdlib
    testImplementation Libs.Kotlin.testJunit
}

(this particular module doesn’t need kapt, but I have other when I need it and I get the same problem)

gradle.properties:

org.gradle.jvmargs=-Xmx1536m
org.gradle.configureondemand=true
org.gradle.caching=false
android.useAndroidX=true
android.enableJetifier=true
android.enableGradleWorkers=true
android.databinding.incremental=true
kapt.use.worker.api=true
kapt.incremental.apt=true
kapt.include.compile.classpath=false
kotlin.code.style=official

I’m using gradle 6.2.1, kotlin: 1.3.70, android plugin: 3.6.1.

Once I downgraded kotlin to 1.3.61 it works fine again.

Hi! The bug is tracked in https://youtrack.jetbrains.com/issue/KT-37241. Can you please share a project to reproduce in that issue? Thanks in advance.