Gradle 9.3: What’s the difference between definiti...
# declarative-gradle
p
Gradle 9.3: What’s the difference between definition and buildmodel? Definition is used for the user dsl, while buildmodel is used for IntelliJ?
p
Definition and Build Model are now defined here: https://declarative.gradle.org/docs/reference/project-features/
j
@Paul Merlin does that mean we have a different lifecycle? First definition with the user data from the scripts, then build model? So no need to after evaluate to do tricky things in configuration phase?
p
It allows for a different lifecycle internally that allows tooling and IDE to reason about the DSL and project definitions without configuring the projects. It does not fix the
afterEvaluate
problem. See https://declarative.gradle.org/docs/reference/migration-case-study/#migrating-complex-projects
👍 1
p
Yeah, thanks so https://github.com/gradle/gradle/issues/35869 is definitely a bug
thank you 1