Hey guys! I have an issue with `inspectClassesForK...
# gradle
p
Hey guys! I have an issue with
inspectClassesForKotlinIC
. On my CI it's running super slow, like 10-20 min. Does anyone have any clue how to fix this?
Copy code
Thu, 11 Jan 2024 15:15:43 GMT
Run ./gradlew :buildSrc:detektMain detektMain
Thu, 11 Jan 2024 15:15:44 GMT
Thu, 11 Jan 2024 15:15:44 GMT Welcome to Gradle 8.2!
Thu, 11 Jan 2024 15:15:44 GMT
Thu, 11 Jan 2024 15:15:44 GMT Here are the highlights of this release:
Thu, 11 Jan 2024 15:15:44 GMT  - Kotlin DSL: new reference documentation, assignment syntax by default
Thu, 11 Jan 2024 15:15:44 GMT  - Kotlin DSL is now the default with Gradle init
Thu, 11 Jan 2024 15:15:44 GMT  - Improved suggestions to resolve errors in console output
Thu, 11 Jan 2024 15:15:44 GMT
Thu, 11 Jan 2024 15:15:44 GMT For more details see <https://docs.gradle.org/8.2/release-notes.html>
Thu, 11 Jan 2024 15:15:44 GMT
Thu, 11 Jan 2024 15:15:44 GMT Starting a Gradle Daemon (subsequent builds will be faster)
Thu, 11 Jan 2024 15:15:47 GMT Calculating task graph as no configuration cache is available for tasks: :buildSrc:detektMain detektMain
Thu, 11 Jan 2024 15:15:53 GMT > Task :buildSrc:pluginDescriptors
Thu, 11 Jan 2024 15:15:54 GMT > Task :buildSrc:processResources NO-SOURCE
Thu, 11 Jan 2024 15:15:59 GMT > Task :buildSrc:compileKotlin
Thu, 11 Jan 2024 15:15:59 GMT > Task :buildSrc:compileJava NO-SOURCE
Thu, 11 Jan 2024 15:15:59 GMT > Task :buildSrc:compileGroovy NO-SOURCE
Thu, 11 Jan 2024 15:15:59 GMT > Task :buildSrc:classes UP-TO-DATE
Thu, 11 Jan 2024 15:16:00 GMT
Thu, 11 Jan 2024 15:16:00 GMT > Task :buildSrc:jar
Thu, 11 Jan 2024 15:16:00 GMT :jar: No valid plugin descriptors were found in META-INF/gradle-plugins
Thu, 11 Jan 2024 15:16:00 GMT
Thu, 11 Jan 2024 15:16:00 GMT > Task :buildSrc:inspectClassesForKotlinIC
Thu, 11 Jan 2024 15:27:33 GMT Checking the license for package Android SDK Platform-Tools in /usr/local/lib/android/sdk/licenses
Thu, 11 Jan 2024 15:27:33 GMT License for package Android SDK Platform-Tools accepted.
Thu, 11 Jan 2024 15:27:33 GMT Preparing "Install Android SDK Platform-Tools v.34.0.5".
Thu, 11 Jan 2024 15:27:33 GMT "Install Android SDK Platform-Tools v.34.0.5" ready.
Thu, 11 Jan 2024 15:27:33 GMT Installing Android SDK Platform-Tools in /usr/local/lib/android/sdk/platform-tools
Thu, 11 Jan 2024 15:27:33 GMT "Install Android SDK Platform-Tools v.34.0.5" complete.
Thu, 11 Jan 2024 15:27:34 GMT "Install Android SDK Platform-Tools v.34.0.5" finished.
...
it's running on GitHub action. I'm wondering if clearing CI cache would help.
t
Could you share a Gradle build scan? Generally this task should not run at all if you are using latest Kotlin version (for Kotlin/JS it is still required sad panda )
p
Not sure if it makes a difference, but do you need build scan from CI or is local scan also fine? We're running kotlin 1.9.10 on JVM. Should we update to 1.9.22?
t
From CI where you see such big task execution time would be preferable.
1.9.10
should be fine. Basically with new JVM incremental compilation this task should not be executed 🤔
p
ok, will try to provide you with build scan a bit later. A bit short on time atm.
👌 1