-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Describe the bug
After adding the plugin to the "plugins" block section and running the configure task "prepareKotlinBuildScriptModel", the
semantic-version-gradle-plugin fails during the apply phase due to a missing project version that is actually in place.
To Reproduce
Steps to reproduce the behavior:
- Have a springboot 3.0.1 project with gradle 7.6 and a Kotlin-based build.gradle.kts
- Add "version" to build.gradle.kts
- Add "com.dipien.semantic-version" (version 2.0.0) to the plugins block section
- Run configure task "prepareKotlinBuildScriptModel"
- See error
Expected behavior
It should detect the project's version so the plugin can be successfully applied
Additional context
I suspected it would be caused by a race condition of not having the project object created during the "Add/Apply Plugins" section, and added the workaround on not applying the plugin until the task "prepareKotlinBuildScriptModel" is done and it seems to be working perfectly fine after that:
Nevertheless, this workaround should not be needed.


