Nick Kleban
11/03/2025, 7:41 PMbuild-tools as includedBuild?
I’ve configured the AS (Otter 2025.2.1) to use the Gradle wrapper (version 8.14.3), but for some reason, another daemon starts up using the 9.0-milestone-1 distribution.gildor
11/04/2025, 8:09 AMgildor
11/04/2025, 8:10 AMNick Kleban
11/04/2025, 9:36 AMbuild-logic/gradle.properties
org.gradle.caching=true
org.gradle.parallel=true
org.gradle.daemon=true
kotlin.compiler.runViaBuildToolsApi=true
kotlin.compiler.execution.strategy=in-process
For example, I’ve run three scenarios, and before each one, I manually deleted
build-logic/.gradle/
build-logic/build/
1. In terminal ./gradlew clean
2. In AS clean in gradle tab
3. In AS menu Build -> Clean Project
Only 3rd one resulted 9.0-milestone-1 appearing in .gradle folder
build-logic/.gradle/8.14.3
build-logic/.gradle/9.0-milestone-1
and daemon with the same version was spawned.gildor
11/04/2025, 9:53 AM1. In AS menu Build -> Clean ProjectYou should never do this
gildor
11/04/2025, 9:53 AMgildor
11/04/2025, 9:54 AMNick Kleban
11/04/2025, 10:03 AMIn AS menu Build -> Clean Project
You should never do this
Sometimes I need to clean build-logic too and it’s the most convenient way to do it as simple ./gradlew clean in root project doesn’t clean build-logic/buildgildor
11/04/2025, 10:05 AMAny motivation behind this?Because it does it without Gradle and this what you get I believe, it uses standalone gradle to run tasks It was always really bad with Build -> Rebuild, when it run a lot of unnecessary tasks which slowdown you a lot
gildor
11/04/2025, 10:05 AMgildor
11/04/2025, 10:06 AMNick Kleban
11/04/2025, 11:40 AMare you sure that you have “clean” task on build-logic?It has clean task, it’s just not being called when I’m running clean in the root project
------------------------------------------------------------
Tasks runnable from project ':build-logic'
------------------------------------------------------------
Build tasks
-----------
assemble - Assembles the outputs of this project.
build - Assembles and tests this project.
...
clean - Deletes the build directory.
...
testClasses - Assembles test classes.gildor
11/05/2025, 2:17 AMgildor
11/05/2025, 2:19 AMclean :build-logic:clean you can create a run item if you want to do it from AS
But in general you shouldn't use clean so often until you test some performance or debugging some problemColton Idle
11/05/2025, 4:51 PMgildor
11/06/2025, 2:19 AMgildor
11/08/2025, 5:37 AMMeet
11/08/2025, 5:40 AMgildor
11/08/2025, 5:42 AMgildor
11/08/2025, 5:42 AMgildor
11/08/2025, 5:43 AMMeet
11/08/2025, 5:46 AMgildor
11/08/2025, 5:47 AMMeet
11/08/2025, 5:47 AM