I have Versions.kt file (buildSrc) in wchich I specify versions of libraries and plugins. I can't use them in plugins block if package is set. Please check plugins block in the build.gradle.kts file in root of the project.
Expected Behavior
I would like example from "Current Behavior.1" to work :)
Current Behavior
Does not work
code from root build.gradle.kts file
with package set in Versions.kt
id("org.springframework.boot") version Versions.springBoot
Works
code from root build.gradle.kts file
without package set in Versions.kt
id("org.springframework.boot") version Versions.springBoot
Context
I would like to have one constant way to set versions of all plugins and dependencies across entire project. This is important especially when you have a lot of modules.
I have Versions.kt file (buildSrc) in wchich I specify versions of libraries and plugins. I can't use them in plugins block if package is set. Please check plugins block in the build.gradle.kts file in root of the project.
Expected Behavior
I would like example from "Current Behavior.1" to work :)
Current Behavior
Does not work code from root build.gradle.kts file with package set in Versions.kt
id("org.springframework.boot") version Versions.springBoot
Works code from root build.gradle.kts file without package set in Versions.kt
id("org.springframework.boot") version Versions.springBoot
Context
I would like to have one constant way to set versions of all plugins and dependencies across entire project. This is important especially when you have a lot of modules.
Steps to Reproduce (for bugs)
demoApp.zip
Your Environment