Hi, i am trying to setup gradle on intellij, when ...
# community-support
n
Hi, i am trying to setup gradle on intellij, when i try to run the Main function in org.gradle.launcher.Main i am getting the error in the first image, i tried to debug a little and found out when running it is looking for a gradle-kotlin-dsl-versions.properties file at line 29th in second image. I could not find this file anywhere, is this supposed to be any properties file i am supposed to initialize? or am i doing something wrong? please help.
c
It isn’t clear why you’re trying to run the Gradle launcher Main directly. If your goal is to “run Gradle” the IDE offers a Gradle integration to sync, run Gradle tasks, using the Gradle tooling API to handle all that. https://www.jetbrains.com/help/idea/gradle.html
n
I wanted to just check the lifecycle of a gradle command in the code to understand the flow, from start to finish, how does it execute
v
You can use any Gradle build and there use "Debug" to run a Gradle task and debug into the Gradle code.
👆 1
a
n
although it took like forever, i could debug a command and kinda understand a little flow , thanks a lot🙏
👌 1
so build-logic and build-logic-commons directory contains actual build logic, platforms contain all the code related to response and request and subprojects directory contains all the additional related projects which can be used anywhere, is this abstract understanding of these directories correct?
v
It's more that subprojects is the old structure and things get gradually moved to the new platforms structure: https://github.com/gradle/gradle/blob/master/architecture%2Fstandards%2F0004-use-a-platform-architecture.md
n
Hi, sorry to ask this, but i want to build a project using code instead of a jar or wrapper or cli, what is the best way to start the build using code?
v
The Tooling API